Переглянути джерело

Merge pull request #124 from meienberger/fix/timezone-arch

Fix Timezone detection for Arch
Nicolas Meienberger 3 роки тому
батько
коміт
b81b4d6884
1 змінених файлів з 1 додано та 1 видалено
  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