From 7cb6da59104a9ed99a7de130157877ffc0bcfcc4 Mon Sep 17 00:00:00 2001 From: mcguirepr89 Date: Tue, 24 May 2022 10:35:45 -0400 Subject: [PATCH] removes pushed_notifications.service on update --- scripts/update_birdnet_snippets.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/update_birdnet_snippets.sh b/scripts/update_birdnet_snippets.sh index 9f27cc2..912574d 100755 --- a/scripts/update_birdnet_snippets.sh +++ b/scripts/update_birdnet_snippets.sh @@ -56,3 +56,8 @@ fi if ! grep FLICKR_API_KEY /etc/birdnet/birdnet.conf &>/dev/null;then sudo -u$USER echo "FLICKR_API_KEY=" >> /etc/birdnet/birdnet.conf fi +if systemctl list-unit-files pushed_notifications.service;then + sudo systemctl disable --now pushed_notifications.service + sudo rm -f /usr/lib/systemd/system/pushed_notifications.service + sudo rm $HOME/BirdNET-Pi/templates/pushed_notifications.service +fi