Update update_birdnet_snippets.sh

This commit is contained in:
ehpersonal38
2022-07-01 13:27:02 -04:00
parent a3ddce480f
commit 595c7fd3fc
+7
View File
@@ -102,6 +102,13 @@ if ! grep SILENCE_UPDATE_INDICATOR /etc/birdnet/birdnet.conf &>/dev/null;then
sudo -u$USER echo "SILENCE_UPDATE_INDICATOR=0" >> /etc/birdnet/birdnet.conf
fi
if [[ -s /etc/crontab && -z "$(tail -c 1 /etc/crontab)" ]]
then
echo ""
else
echo "\n" | sudo tee -a /etc/crontab
fi
sudo systemctl daemon-reload
restart_services.sh