From 35d8ee4c0ac0a42c3c051efd6bf59c28fc92c902 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sun, 27 Oct 2024 21:07:54 +0100 Subject: [PATCH] Fix timedatectl https://github.com/alexbelgium/hassio-addons/issues/1620#issuecomment-2440155857 --- birdnet-pi/Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/birdnet-pi/Dockerfile b/birdnet-pi/Dockerfile index 345f9ffba..fe1050993 100644 --- a/birdnet-pi/Dockerfile +++ b/birdnet-pi/Dockerfile @@ -45,6 +45,9 @@ RUN \ curl -f -L -s -S https://raw.githubusercontent.com/gdraheim/docker-systemctl-replacement/master/files/docker/systemctl3.py -o /bin/systemctl && \ chmod a+x /bin/systemctl && \ \ + # Correct for datetimectl + sed -i '/CURRENT_TIMEZONE/s/$/ || true/' "$HOME/BirdNET-Pi/scripts/install_birdnet.sh" && \ + \ # Change user to pi and create /home/pi echo "setting users" && \ if id abc >/dev/null 2>&1; then groupmod -o -g 101 abc && usermod -o -u 101 abc; fi && \