[Compose] Enable some minimal inits, change or remove some health checks

This commit is contained in:
andryyy
2017-09-16 13:17:37 +02:00
parent c63fb8b11a
commit 8741b5f3b1
10 changed files with 120 additions and 91 deletions

View File

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