From b9e389aeac00f11b2bcdeb55531f6edd64dc46d1 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 1 May 2024 16:59:50 +0200 Subject: [PATCH] Update 30-monitoring.sh --- birdnet-pi/rootfs/custom-services.d/30-monitoring.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/birdnet-pi/rootfs/custom-services.d/30-monitoring.sh b/birdnet-pi/rootfs/custom-services.d/30-monitoring.sh index 95ec47600..a9e51528c 100755 --- a/birdnet-pi/rootfs/custom-services.d/30-monitoring.sh +++ b/birdnet-pi/rootfs/custom-services.d/30-monitoring.sh @@ -38,7 +38,7 @@ while true; do latest=$(cat "$RECS_DIR"/StreamData/analyzing_now.txt) if [[ "$latest" == "$analyzing_now" ]]; then echo "$(date) WARNING no change in analyzing_now for 10 iterations, restarting services" - sudo -u pi "$HOME"/BirdNET-Pi/scripts/restart_services.sh + "$HOME"/BirdNET-Pi/scripts/restart_services.sh fi counter=10 analyzing_now=$(cat "$HOME"/BirdSongs/StreamData/analyzing_now.txt)