bookwork fix: make php version independant

This commit is contained in:
frederik
2024-02-09 15:35:22 +01:00
parent 2a68bb2e43
commit c100d19da1
4 changed files with 10 additions and 6 deletions
+4
View File
@@ -100,6 +100,10 @@ if grep -q 'birdnet_server.service' "$HOME/BirdNET-Pi/templates/birdnet_analysis
systemctl daemon-reload && restart_services.sh
fi
if grep -q 'php7.4-' /etc/caddy/Caddyfile &>/dev/null; then
sed -i 's/php7.4-/php-/' /etc/caddy/Caddyfile
fi
if [ -L /usr/local/bin/analyze.py ];then
rm -f /usr/local/bin/analyze.py
fi