1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-04-01 21:27:22 +02:00

bash strict mode fixes (#1482)

This commit is contained in:
jvolkenant
2018-12-13 17:30:05 -08:00
committed by Joshua Tauberer
parent e80a1dd4b7
commit 71f1c92b9e
3 changed files with 4 additions and 4 deletions

View File

@@ -4,7 +4,7 @@ if [ -z "`tools/mail.py user`" ]; then
# aren't any yet, it'll be empty.
# If we didn't ask for an email address at the start, do so now.
if [ -z "$EMAIL_ADDR" ]; then
if [ -z "${EMAIL_ADDR:-}" ]; then
# In an interactive shell, ask the user for an email address.
if [ -z "${NONINTERACTIVE:-}" ]; then
input_box "Mail Account" \
@@ -47,7 +47,7 @@ if [ -z "`tools/mail.py user`" ]; then
fi
# Create the user's mail account. This will ask for a password if none was given above.
tools/mail.py user add $EMAIL_ADDR $EMAIL_PW
tools/mail.py user add $EMAIL_ADDR ${EMAIL_PW:-}
# Make it an admin.
hide_output tools/mail.py user make-admin $EMAIL_ADDR