From c754d2d082dc612040f3a869c948f19b71e55c7c Mon Sep 17 00:00:00 2001 From: frederik Date: Sun, 20 Oct 2024 14:50:39 +0200 Subject: [PATCH] work around Debian specific /etc/timezone behaviour --- scripts/install_birdnet.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/install_birdnet.sh b/scripts/install_birdnet.sh index 107c606..a06ab57 100755 --- a/scripts/install_birdnet.sh +++ b/scripts/install_birdnet.sh @@ -40,6 +40,10 @@ install_birdnet cd $my_dir/scripts || exit 1 +# tzlocal.get_localzone() will fail if the Debian specific /etc/timezone is not in sync +CURRENT_TIMEZONE=$(timedatectl show --value --property=Timezone) +[ -f /etc/timezone ] && echo "$CURRENT_TIMEZONE" | sudo tee /etc/timezone > /dev/null + ./install_language_label_nm.sh -l $DATABASE_LANG || exit 1 exit 0