From 5826d11385a82d709d512396a72d14f51b33d593 Mon Sep 17 00:00:00 2001 From: Helmuth Gronewold Date: Fri, 22 Aug 2014 21:30:26 +0200 Subject: [PATCH] FIX: If you use me@box.example.com as your mail address, the default primary hostname will be box.box.example.com --- setup/start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/start.sh b/setup/start.sh index 9b2ca292..824ff859 100755 --- a/setup/start.sh +++ b/setup/start.sh @@ -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