diff --git a/birdnet-pi/rootfs/etc/cont-init.d/99-run.sh b/birdnet-pi/rootfs/etc/cont-init.d/99-run.sh index 411b34990..1c6e5c62b 100755 --- a/birdnet-pi/rootfs/etc/cont-init.d/99-run.sh +++ b/birdnet-pi/rootfs/etc/cont-init.d/99-run.sh @@ -78,6 +78,11 @@ if bashio::config.has_value 'TZ'; then echo "$TIMEZONE" >/etc/timezone fi || (bashio::log.fatal "Error : $TIMEZONE not found. Here is a list of valid timezones : https://manpages.ubuntu.com/manpages/focal/man3/DateTime::TimeZone::Catalog.3pm.html") +# Correct language labels +export "$(grep "^DATABASE_LANG" /config/birdnet.conf)" +echo "... adapting labels according to birdnet.conf file to $DATABASE_LANG" +/."$HOME"/BirdNET-Pi/scripts/install_language_label_nm.sh -l "$DATABASE_LANG" + # Correcting systemctl echo "... correcting systemctl" curl -f -L -s -S https://raw.githubusercontent.com/gdraheim/docker-systemctl-replacement/master/files/docker/systemctl3.py -o /bin/systemctl @@ -100,11 +105,6 @@ chmod +x "$HOME"/BirdNET-Pi/scripts/restart_services.sh echo " " bashio::log.info "Adapting webui" -# Correct language labels -export "$(grep "^DATABASE_LANG" /config/birdnet.conf)" -echo "... adapting labels according to birdnet.conf file to $DATABASE_LANG" -/."$HOME"/BirdNET-Pi/scripts/install_language_label_nm.sh -l "$DATABASE_LANG" - # Remove services tab echo "... removing System Controls from webui as should be used from HA" sed -i '/>System Controls/d' "$HOME"/BirdNET-Pi/homepage/views.php