diff --git a/generate_config.sh b/generate_config.sh index 4ef1515f..cbfab969 100755 --- a/generate_config.sh +++ b/generate_config.sh @@ -16,7 +16,7 @@ if [ -z "$MAILCOW_HOSTNAME" ]; then read -p "Hostname (FQDN): " -ei "mx.example.org" MAILCOW_HOSTNAME fi -[[ -a /etc/timezone ]] && TZ=$(cat /etc/timezone) +[[ -a /etc/timezone ]] && TZ=$(cat /etc/timezone) || [[ -a /etc/localtime ]] && TZ=$(readlink /etc/localtime|sed -n 's|^.*zoneinfo/||p') if [ -z "$TZ" ]; then read -p "Timezone: " -ei "Europe/Berlin" TZ else