A live bird collage card for your Home Assistant dashboard.
Fixed PHP version breaking for other locales
Patrick McGuire7c6cfa0dfb90
diff --git a/scripts/install_services.sh b/scripts/install_services.shindex 0bd65f25..0607af46 100755--- a/scripts/install_services.sh+++ b/scripts/install_services.sh@@ -40,7 +40,7 @@ install_mariadb() {elif [[ "${VERSION_CODENAME}" == "bullseye" ]];thenUSER=${USER} ${my_dir}/createdb_bullseye.shfi- systemctl restart php7.${php_version}-fpm+ systemctl restart php${php_version}-fpm}install_birdnet_analysis() {@@ -231,7 +231,7 @@ install_Caddyfile() {if [ -f /etc/caddy/Caddyfile ];thencp /etc/caddy/Caddyfile{,.original}fi- php_version="$(awk -F. '{print $2}' <(ls -l $(which /etc/alternatives/php)))"+ php_version="$(awk -F'php' '{print $3}' <(ls -l $(which /etc/alternatives/php)))"HASHWORD=$(caddy hash-password -plaintext ${CADDY_PWD})cat << EOF > /etc/caddy/Caddyfilehttp://localhost http://birdnetpi.local ${BIRDNETPI_URL} {@@ -250,7 +250,7 @@ http://localhost http://birdnetpi.local ${BIRDNETPI_URL} {birdnet ${HASHWORD}}reverse_proxy /stream localhost:8000- php_fastcgi unix//run/php/php7.${php_version}-fpm.sock+ php_fastcgi unix//run/php/php${php_version}-fpm.sock}EOFif [ ! -z ${EXTRACTIONLOG_URL} ];then