css for the slider

advanced.php updates birdnet.conf now
removed privacy_server.py
added snippets to update_birdnet_snippets.sh
This commit is contained in:
mcguirepr89
2022-05-06 11:24:07 -04:00
parent 1a5e81a46f
commit 5b4aec2ab8
4 changed files with 41 additions and 468 deletions
+6 -2
View File
@@ -9,8 +9,12 @@ if ! grep python3 <(head -n1 $my_dir/analyze.py) &>/dev/null;then
echo "Ensure all python scripts use the virtual environment"
sudo -u$USER sed -si "1 i\\#\!$HOME/BirdNET-Pi/birdnet/bin/python3" $my_dir/*.py
fi
if ! grep PRIVACY_MODE /etc/birdnet/birdnet.conf &>/dev/null;then
sudo -u$USER echo "PRIVACY_MODE=off" >> /etc/birdnet/birdnet.conf
if ! grep PRIVACY_THRESHOLD /etc/birdnet/birdnet.conf &>/dev/null;then
sudo -u$USER echo "PRIVACY_THRESHOLD=0" >> /etc/birdnet/birdnet.conf
fi
if grep privacy ~/BirdNET-Pi/templates/birdnet_server.service &>/dev/null;then
sudo -E sed -i 's/privacy_server.py/server.py/g' \
~/BirdNET-Pi/templates/birdnet_server.service
fi
if ! which lsof &>/dev/null;then
sudo apt update && sudo apt -y install lsof