Explorar o código

Fix Timezone detection for Arch

Nicolas Meienberger %!s(int64=3) %!d(string=hai) anos
pai
achega
51e0c137c8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      scripts/start.sh

+ 1 - 1
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