work around Debian specific /etc/timezone behaviour

This commit is contained in:
frederik
2024-10-20 14:50:39 +02:00
committed by Nachtzuster
parent 5e70dcabbb
commit c754d2d082
+4
View File
@@ -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