A live bird collage card for your Home Assistant dashboard.
fix: update caddyfile after restore
frederik9e64d77f0e9f
diff --git a/scripts/backup_data.sh b/scripts/backup_data.shindex dabc7bca..3391aa1c 100755--- a/scripts/backup_data.sh+++ b/scripts/backup_data.sh@@ -152,6 +152,7 @@ restore() {/home/$CURRENT_BIRDNET_USER/BirdNET-Pi/scripts/install_language_label.sh -l $DATABASE_LANGfirm -fr ${UNPACK}+ [ -n "${CADDY_PWD}" ] && sudo /usr/local/bin/update_caddyfile.sh > /dev/null 2>&1log "Restore done"}diff --git a/scripts/update_birdnet_snippets.sh b/scripts/update_birdnet_snippets.shindex a6fef3bf..4bbca58f 100755--- a/scripts/update_birdnet_snippets.sh+++ b/scripts/update_birdnet_snippets.sh@@ -188,6 +188,11 @@ if [ "$(grep -o "#birdnet" /etc/crontab | wc -l)" -lt 5 ]; thensed "s/\$USER/$USER/g" "$HOME"/BirdNET-Pi/templates/weekly_report.cron >> /etc/crontabfi+set +x+AUTH=$(grep basicauth /etc/caddy/Caddyfile)+[ -n "${CADDY_PWD}" ] && [ -z "${AUTH}" ] && sudo /usr/local/bin/update_caddyfile.sh > /dev/null 2>&1+set -x+# update snippets abovesystemctl daemon-reload