From 8d4728e1dfbb75a9fe22e925ed7769d39afd8642 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sun, 27 Oct 2024 21:22:13 +0100 Subject: [PATCH] Add timedatectl https://github.com/alexbelgium/hassio-addons/issues/1620?notification_referrer_id=NT_kwDOAqIdGbQxMzA3MDE3NzYwNzo0NDE3ODcxMw#issuecomment-2440162257 --- birdnet-pi/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/birdnet-pi/Dockerfile b/birdnet-pi/Dockerfile index fe1050993..cb677f765 100644 --- a/birdnet-pi/Dockerfile +++ b/birdnet-pi/Dockerfile @@ -45,8 +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" && \ + # Coreect for datetimectl + curl -f -L -s -S https://raw.githubusercontent.com/alexbelgium/hassio-addons/refs/heads/master/birdnet-pi/rootfs/helpers/timedatectl -o /bin/timedatectl && \ + chmod a+x /bin/timedatectl && \ \ # Change user to pi and create /home/pi echo "setting users" && \