Livestream Enabled from boot with option

https://github.com/alexbelgium/hassio-addons/issues/1371#issuecomment-2152801411
This commit is contained in:
Alexandre
2024-06-06 21:45:09 +02:00
committed by GitHub
parent dd7f327272
commit 3e25d88fa8

View File

@@ -52,6 +52,13 @@ bashio::log.info "Starting BirdNET-Pi services"
chmod +x "$HOME"/BirdNET-Pi/scripts/restart_services.sh
"$HOME"/BirdNET-Pi/scripts/restart_services.sh
if bashio::config.true LIVESTREAM_DEFAULT_ENABLED; then
echo "... starting livestream"
sudo systemctl enable icecast2
sudo systemctl start icecast2.service
sudo systemctl enable --now livestream.service
fi
# Correct the phpsysinfo for the correct gotty service
gottyservice="$(pgrep -l "gotty" | awk '{print $NF}' | head -n 1)"
echo "... using $gottyservice in phpsysinfo"