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

Fix Timezone detection for Arch
This commit is contained in:
Nicolas Meienberger 2022-07-18 17:44:19 +00:00 committed by GitHub
commit b81b4d6884
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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