From 51e0c137c87dbefc5c695549a257689ec774aa43 Mon Sep 17 00:00:00 2001 From: Nicolas Meienberger Date: Wed, 15 Jun 2022 20:33:33 +0200 Subject: [PATCH] Fix Timezone detection for Arch --- scripts/start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/start.sh b/scripts/start.sh index 79f52010..b3b7ee1b 100755 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -101,7 +101,7 @@ function derive_entropy() { printf "%s" "${identifier}" | openssl dgst -sha256 -hmac "${tipi_seed}" | sed 's/^.* //' } -TZ="$(cat /etc/timezone | sed 's/\//\\\//g' || echo "Europe/Berlin")" +TZ="$(timedatectl | grep "Time zone" | awk '{print $3}') || Europe/Berlin" # Copy the app state if it isn't here if [[ ! -f "${STATE_FOLDER}/apps.json" ]]; then