gotty: fix: forward compatibility with v1.5
This commit is contained in:
@@ -117,6 +117,16 @@ if ! [ -f "$HOME/BirdNET-Pi/templates/$TMP_MOUNT" ]; then
|
||||
chown $USER:$USER "$HOME/BirdNET-Pi/templates/$TMP_MOUNT"
|
||||
fi
|
||||
|
||||
if ! grep '-P log' $HOME/BirdNET-Pi/templates/birdnet_log.service &>/dev/null;then
|
||||
sed -i "s/-P log/--path log/" ~/BirdNET-Pi/templates/birdnet_log.service
|
||||
systemctl daemon-reload && restart_services.sh
|
||||
fi
|
||||
|
||||
if ! grep '-P terminal' $HOME/BirdNET-Pi/templates/web_terminal.service &>/dev/null;then
|
||||
sed -i "s/-P terminal/--path terminal/" ~/BirdNET-Pi/templates/web_terminal.service
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user