mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-04-05 00:27:25 +00:00
Don't overwrite PRIMARY_HOSTNAME if already set
This commit is contained in:
parent
29fad6106e
commit
46e0d7a070
@ -12,7 +12,7 @@ export PUBLIC_IP="${PUBLIC_IP:-$(source setup/functions.sh; get_default_privatei
|
||||
if [ "$TRAVIS" == "true" ]; then
|
||||
export PRIMARY_HOSTNAME=${PRIMARY_HOSTNAME:-box.abc.com}
|
||||
elif [ -z "$PRIMARY_HOSTNAME" ]; then
|
||||
export PRIMARY_HOSTNAME=$(hostname --fqdn || hostname)
|
||||
export PRIMARY_HOSTNAME=${PRIMARY_HOSTNAME:-$(hostname --fqdn || hostname)}
|
||||
fi
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user