From e3a1d0d50550872da603676d86498dbca0d299ee Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Fri, 7 Jun 2024 08:33:03 +0200 Subject: [PATCH] Use local and not distant *ctl replacements --- birdnet-pi/rootfs/etc/cont-init.d/99-run.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 2525729da..116cb30b6 100755 --- a/birdnet-pi/rootfs/etc/cont-init.d/99-run.sh +++ b/birdnet-pi/rootfs/etc/cont-init.d/99-run.sh @@ -24,9 +24,14 @@ fi || (bashio::log.fatal "Error : $TIMEZONE not found. Here is a list of valid t # 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 +mv /helpers/systemctl3.py /bin/systemctl chmod a+x /bin/systemctl +# Correcting systemctl +echo "... correcting datetimectl" +mv /helpers/timedatectl /usr/bin/timedatectl +chmod a+x /usr/bin/timedatectl + # Correct language labels export "$(grep "^DATABASE_LANG" /config/birdnet.conf)" # Saving default of en