Update update_birdnet.sh

This commit is contained in:
Patrick McGuire
2022-04-15 09:45:43 -04:00
committed by GitHub
parent 5fd80fcc49
commit c1763d5924
+1
View File
@@ -12,6 +12,7 @@ sudo ln -sf $my_dir/* /usr/local/bin/
if ! grep python3 <(head -n1 $my_dir/analyze.py);then
echo "Ensure all python scripts use the virtual environment"
sed -si "1 i\\#\!$(realpath $(dirname $my_dir))/BirdNET-Pi/birdnet/bin/python3" $my_dir/*.py
fi
if ! grep PRIVACY_MODE /etc/birdnet/birdnet.conf;then
sudo -u${USER} echo "PRIVACY_MODE=off" >> /etc/birdnet/birdnet.conf
fi