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
c1ccd225
Commit
c1ccd225
authored
Sep 21, 2014
by
Joshua Tauberer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
put a start script at /usr/local/bin/mailinabox
parent
01c964bf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
2 deletions
+11
-2
preflight.sh
setup/preflight.sh
+1
-1
questions.sh
setup/questions.sh
+1
-1
start.sh
setup/start.sh
+9
-0
No files found.
setup/preflight.sh
View file @
c1ccd225
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
if
[[
$EUID
-ne
0
]]
;
then
if
[[
$EUID
-ne
0
]]
;
then
echo
"This script must be run as root. Please re-run like this:"
echo
"This script must be run as root. Please re-run like this:"
echo
echo
echo
"sudo
setup/start.sh
"
echo
"sudo
$0
"
echo
echo
exit
exit
fi
fi
...
...
setup/questions.sh
View file @
c1ccd225
...
@@ -8,7 +8,7 @@ if [ -z "$NONINTERACTIVE" ]; then
...
@@ -8,7 +8,7 @@ if [ -z "$NONINTERACTIVE" ]; then
message_box
"Mail-in-a-Box Installation"
\
message_box
"Mail-in-a-Box Installation"
\
"Hello and thanks for deploying a Mail-in-a-Box!
"Hello and thanks for deploying a Mail-in-a-Box!
\n\n
I'm going to ask you a few questions.
\n\n
I'm going to ask you a few questions.
\n\n
To change your answers later, just r
e-run this script
."
\n\n
To change your answers later, just r
un 'sudo mailinabox' from the command line
."
fi
fi
# The box needs a name.
# The box needs a name.
...
...
setup/start.sh
View file @
c1ccd225
...
@@ -21,6 +21,15 @@ if [ -f /etc/mailinabox.conf ]; then
...
@@ -21,6 +21,15 @@ if [ -f /etc/mailinabox.conf ]; then
rm
-f
/tmp/mailinabox.prev.conf
rm
-f
/tmp/mailinabox.prev.conf
fi
fi
# Put a start script in a global location. We tell the user to run 'mailinabox'
# in the first dialog prompt, so we should do this before that starts.
cat
>
/usr/local/bin/mailinabox
<<
EOF
;
#!/bin/bash
cd `pwd`
source setup/start.sh
EOF
chmod
+x /usr/local/bin/mailinabox
# Ask the user for the PRIMARY_HOSTNAME, PUBLIC_IP, PUBLIC_IPV6, and CSR_COUNTRY
# Ask the user for the PRIMARY_HOSTNAME, PUBLIC_IP, PUBLIC_IPV6, and CSR_COUNTRY
# if values have not already been set in environment variables. When running
# if values have not already been set in environment variables. When running
# non-interactively, be sure to set values for all!
# non-interactively, be sure to set values for all!
...
...
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