From 655b1eaf09c1fee8eaa3fd90f52fdc38791eebe4 Mon Sep 17 00:00:00 2001 From: ehpersonal38 <103586016+ehpersonal38@users.noreply.github.com> Date: Tue, 28 Jun 2022 13:10:44 -0400 Subject: [PATCH] Update update_birdnet_snippets.sh --- scripts/update_birdnet_snippets.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/update_birdnet_snippets.sh b/scripts/update_birdnet_snippets.sh index a65ec40..08dc6b2 100755 --- a/scripts/update_birdnet_snippets.sh +++ b/scripts/update_birdnet_snippets.sh @@ -95,7 +95,7 @@ if [[ "$pytest_installation_status" = "not installed" ]];then fi [ -L ~/BirdSongs/Extracted/weekly_report.php ] || ln -sf ~/BirdNET-Pi/scripts/weekly_report.php ~/BirdSongs/Extracted -[ -L /usr/local/bin/weekly_report.sh ] || chmod +x $HOME/BirdNET-Pi/scripts/weekly_report.sh; ln -sf ~/BirdNET-Pi/scripts/weekly_report.php /usr/local/bin/weekly_report.sh +[ -L /usr/local/bin/weekly_report.sh ] || sudo chmod +x $HOME/BirdNET-Pi/scripts/weekly_report.sh; ln -sf ~/BirdNET-Pi/scripts/weekly_report.php /usr/local/bin/weekly_report.sh sed "s/\$USER/$USER/g" $HOME/BirdNET-Pi/templates/weekly_report.cron >> /etc/crontab if ! grep APPRISE_WEEKLY_REPORT /etc/birdnet/birdnet.conf &>/dev/null;then sudo -u$USER echo "APPRISE_WEEKLY_REPORT=0" >> /etc/birdnet/birdnet.conf