fix: make sure we look for the correct gotty executable name

This commit is contained in:
frederik
2024-04-29 17:57:34 +02:00
parent f552b50196
commit ee9aeb6d62
2 changed files with 7 additions and 0 deletions
+2
View File
@@ -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() {
+5
View File
@@ -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