Merge pull request #593 from K2rool/patch-2
Rewrite the if for getting timezone
This commit is contained in:
		@@ -16,7 +16,12 @@ if [ -z "$MAILCOW_HOSTNAME" ]; then
 | 
				
			|||||||
  read -p "Hostname (FQDN): " -ei "mx.example.org" MAILCOW_HOSTNAME
 | 
					  read -p "Hostname (FQDN): " -ei "mx.example.org" MAILCOW_HOSTNAME
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[[ -a /etc/timezone ]] && TZ=$(cat /etc/timezone) || [[ -a /etc/localtime ]] && TZ=$(readlink /etc/localtime|sed -n 's|^.*zoneinfo/||p')
 | 
					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
 | 
					if [ -z "$TZ" ]; then
 | 
				
			||||||
  read -p "Timezone: " -ei "Europe/Berlin" TZ
 | 
					  read -p "Timezone: " -ei "Europe/Berlin" TZ
 | 
				
			||||||
else
 | 
					else
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user