Update 91-run.sh

This commit is contained in:
Alexandre
2024-05-01 11:01:24 +02:00
committed by GitHub
parent 8a62093293
commit 943d798e67

View File

@@ -49,4 +49,9 @@ bashio::log.info "Starting BirdNET-Pi services"
chmod +x "$HOME"/BirdNET-Pi/scripts/restart_services.sh
sudo -u pi "$HOME"/BirdNET-Pi/scripts/restart_services.sh
# Correct the phpsysinfo for the correct gotty service
gottyservice="$(pgrep -l "gotty" | awk '{print $NF}' | head -n 1)"
echo "... using $gottyservice in phpsysinfo"
sed -i "s/,gotty,/,${gottyservice:-gotty},/g" "$HOME"/BirdNET-Pi/templates/phpsysinfo.ini
echo " "