Use readlink Instead of realpath
This commit is contained in:
		
							parent
							
								
									a1eb71ac44
								
							
						
					
					
						commit
						01e1b5bb91
					
				| @ -16,7 +16,7 @@ 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=$(realpath /etc/localtime|sed -n 's|^.*zoneinfo/||p') | [[ -a /etc/timezone ]] && TZ=$(cat /etc/timezone) || [[ -a /etc/localtime ]] && TZ=$(readlink /etc/localtime|sed -n 's|^.*zoneinfo/||p') | ||||||
| if [ -z "$TZ" ]; then | if [ -z "$TZ" ]; then | ||||||
|   read -p "Timezone: " -ei "Europe/Berlin" TZ |   read -p "Timezone: " -ei "Europe/Berlin" TZ | ||||||
| else | else | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 James Smith
						James Smith