mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-05-18 07:26:56 +00:00
Merge 12c0d70ac9
into 5d42c125eb
This commit is contained in:
commit
5bafdb27e8
@ -92,7 +92,8 @@ if [ -z "$PRIMARY_HOSTNAME" ]; then
|
|||||||
|
|
||||||
# Take the part after the @-sign as the user's domain name, and add
|
# Take the part after the @-sign as the user's domain name, and add
|
||||||
# 'box.' to the beginning to create a default hostname for this machine.
|
# 'box.' to the beginning to create a default hostname for this machine.
|
||||||
DEFAULT_PRIMARY_HOSTNAME=box.$(echo $EMAIL_ADDR | sed 's/.*@//')
|
# If there is already a 'box.' in the EMAIL_ADDR, strip it from the string.
|
||||||
|
DEFAULT_PRIMARY_HOSTNAME=box.$(echo $EMAIL_ADDR | sed -e 's/.*@//' -e 's/^box\.//')
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo
|
echo
|
||||||
|
Loading…
Reference in New Issue
Block a user