Update 99-run.sh

This commit is contained in:
Alexandre
2024-04-28 10:18:49 +02:00
committed by GitHub
parent c25720df98
commit 30aa0179ef

View File

@@ -98,6 +98,6 @@ echo "... removing System Controls from webui as should be used from HA"
sed -i '/>System Controls/d' "$HOME"/BirdNET-Pi/homepage/views.php
# Correct the phpsysinfo for the correct gotty service
gottyservice="$(ps aux | grep 'address' | grep -o 'gotty-[a-z0-9]*' | head -n 1)"
gottyservice="$(ps aux | grep 'address' | grep -o 'gotty-[a-z_0-9]*' | head -n 1)"
echo "... using $gottyservice in phpsysinfo"
sed -i "s/,gotty,/,${gottyservice:-gotty},/g" "$HOME"/BirdNET-Pi/templates/phpsysinfo.ini