FIX: If you use me@box.example.com as your mail address, the default primary hostname will be box.box.example.com

This commit is contained in:
Helmuth Gronewold 2014-08-22 21:30:26 +02:00
parent f7c7d5b9c3
commit 5826d11385
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ if [ -z "$PRIMARY_HOSTNAME" ]; then
# 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.
DEFAULT_PRIMARY_HOSTNAME=box.$(echo $EMAIL_ADDR | sed 's/.*@//')
DEFAULT_PRIMARY_HOSTNAME=box.$(echo $EMAIL_ADDR | sed -e 's/.*@//' -e 's/^box\.//')
fi
echo