Fix Timezone detection for Arch

This commit is contained in:
Nicolas Meienberger 2022-06-15 20:33:33 +02:00
parent 58ca7709ba
commit 51e0c137c8

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