#!/bin/bash
set -e
NAS_PATH="/volume1/docker/dashboard-keller"
echo '[payload removed: 23776 characters]' | base64 -d > /volume1/docker/dashboard-keller/src/dashboard.js
echo '[payload removed: 29844 characters]' | base64 -d > /volume1/docker/dashboard-keller/src/dashboard.html
echo '[payload removed: 49100 characters]' | base64 -d > /volume1/docker/dashboard-keller/src/dashboard.css
echo '[payload removed: 1084 characters]' | base64 -d > /volume1/docker/dashboard-keller/docker-compose.yml
echo '[payload removed: 744 characters]' | base64 -d > /volume1/docker/dashboard-keller/Dockerfile
echo '[payload removed: 2872 characters]' | base64 -d > /volume1/docker/dashboard-keller/desplegar_en_nas.sh
rm -f /volume1/docker/dashboard-keller/entrypoint.sh /volume1/docker/dashboard-keller/wisen_fetcher.rb /volume1/docker/dashboard-keller/src/wisen_data.json
cd /volume1/docker/dashboard-keller && docker compose restart dashboard-keller && docker compose restart tailscale-funnel
