mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-11-22 02:17:26 +00:00
put a start script at /usr/local/bin/mailinabox
This commit is contained in:
parent
01c964bfe3
commit
c1ccd22531
@ -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
|
||||||
|
@ -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\nI'm going to ask you a few questions.
|
\n\nI'm going to ask you a few questions.
|
||||||
\n\nTo change your answers later, just re-run this script."
|
\n\nTo change your answers later, just run 'sudo mailinabox' from the command line."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# The box needs a name.
|
# The box needs a name.
|
||||||
|
@ -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!
|
||||||
|
Loading…
Reference in New Issue
Block a user