Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mailinabox
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
mailinabox
Commits
ff8413a6
Commit
ff8413a6
authored
Aug 23, 2014
by
Helmuth Gronewold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better handling of hostname and email address recommendation.
parent
f7c7d5b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
start.sh
setup/start.sh
+7
-1
No files found.
setup/start.sh
View file @
ff8413a6
...
...
@@ -62,6 +62,12 @@ fi
# The box needs a name.
if
[
-z
"
$PRIMARY_HOSTNAME
"
]
;
then
if
[
-z
"
$DEFAULT_PRIMARY_HOSTNAME
"
]
;
then
# We recommend to use box.example.com as this hosts name. The
# domain the user possibly wants to use is example.com then.
# We strip the string "box." from the hostname to get the mail
# domain. If the hostname differs, nothing happens here.
DEFAULT_DOMAIN_GUESS
=
$(
echo
$(
get_default_hostname
)
|
sed
-e
's/^box\.//'
)
# This is the first run. Ask the user for his email address so we can
# provide the best default for the box's hostname.
echo
...
...
@@ -75,7 +81,7 @@ if [ -z "$PRIMARY_HOSTNAME" ]; then
echo
"We've guessed an email address. Backspace it and type in what"
echo
"you really want."
echo
read
-e
-i
"me@
`
get_default_hostname
`
"
-p
"Email Address: "
EMAIL_ADDR
read
-e
-i
"me@
$DEFAULT_DOMAIN_GUESS
"
-p
"Email Address: "
EMAIL_ADDR
while
!
management/mailconfig.py validate-email
"
$EMAIL_ADDR
"
do
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment