From 064f5f61535d92cd84619c898053312b151d7473 Mon Sep 17 00:00:00 2001 From: Patrick McGuire Date: Wed, 20 Oct 2021 11:45:06 -0400 Subject: [PATCH] adding step to update_birdnet2.sh --- scripts/update_birdnet2.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/update_birdnet2.sh b/scripts/update_birdnet2.sh index cc9a1db..6076cca 100755 --- a/scripts/update_birdnet2.sh +++ b/scripts/update_birdnet2.sh @@ -1,8 +1,12 @@ #!/usr/bin/env bash # Second stage of update +# Stage 1 updates the birdnet.conf +sudo -upi sed -i 's/EXTRACTIONS_URL/BIRDNETPI_URL/g' /home/pi/BirdNET-Pi/birdnet.conf +echo "EXTRACTIONLOG_URL=" >> /home/pi/BirdNET-Pi/birdnet.conf +echo "BIRDNETLOG_URL=" >> /home/pi/BirdNET-Pi/birdnet.conf -# Stage 1 updates the services +# Stage 2 updates the services my_dir=${HOME}/BirdNET-Pi/scripts sudo ${my_dir}/update_services.sh