adjustments to the installer and updater to ensure

`lsof` is installed
This commit is contained in:
mcguirepr89
2022-05-05 16:42:47 -04:00
parent c914c645a8
commit eb8fdd2d8a
4 changed files with 50 additions and 8 deletions
+1 -7
View File
@@ -11,10 +11,4 @@ sudo -u${USER} git -C $my_dir pull -f
sudo systemctl daemon-reload
sudo -u${USER} git -C $my_dir stash pop
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\\#\!$HOME/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
sudo $my_dir/update_birdnet_snippets.sh