From ee9aeb6d62a9b0703c537649054ae3ff2ce4a1ff Mon Sep 17 00:00:00 2001 From: frederik Date: Mon, 29 Apr 2024 17:57:34 +0200 Subject: [PATCH] fix: make sure we look for the correct gotty executable name --- scripts/install_services.sh | 2 ++ scripts/update_birdnet_snippets.sh | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/scripts/install_services.sh b/scripts/install_services.sh index 9fe1d4e..e2e000b 100755 --- a/scripts/install_services.sh +++ b/scripts/install_services.sh @@ -341,6 +341,8 @@ EOF install_phpsysinfo() { sudo -u ${USER} git clone https://github.com/phpsysinfo/phpsysinfo.git \ ${HOME}/phpsysinfo + gottyservice="gotty-$(uname -m)" + sed -i "s/,gotty,/,${gottyservice},/g" "$HOME"/BirdNET-Pi/templates/phpsysinfo.ini } config_icecast() { diff --git a/scripts/update_birdnet_snippets.sh b/scripts/update_birdnet_snippets.sh index 5157a95..13b5243 100755 --- a/scripts/update_birdnet_snippets.sh +++ b/scripts/update_birdnet_snippets.sh @@ -160,6 +160,11 @@ if ! [ -L /etc/avahi/services/http.service ];then systemctl restart avahi-daemon.service fi +if grep -q ",gotty," "$HOME/BirdNET-Pi/templates/phpsysinfo.ini" &>/dev/null; then + gottyservice="gotty-$(uname -m)" + sed -i "s/,gotty,/,${gottyservice},/g" "$HOME/BirdNET-Pi/templates/phpsysinfo.ini" +fi + if [ -L /usr/local/bin/analyze.py ];then rm -f /usr/local/bin/analyze.py fi