Notification conf and cron setups

This commit is contained in:
ehpersonal38
2022-06-28 13:04:59 -04:00
parent 828d9d8757
commit 5896f00a55
6 changed files with 18 additions and 0 deletions
+5
View File
@@ -95,6 +95,11 @@ 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 ] || 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
fi
sudo systemctl daemon-reload
restart_services.sh