fix(scripts): forget exit on error!
This commit is contained in:
parent
3f8ab5d378
commit
e17624864c
@ -20,12 +20,15 @@ else
|
|||||||
# check for missing environment variable values
|
# check for missing environment variable values
|
||||||
if [ -z "$SMARTHOST" ]; then
|
if [ -z "$SMARTHOST" ]; then
|
||||||
printf "\nYou must specify the hostname or IP address of a smarthost where mail should be relayed.\n\n"
|
printf "\nYou must specify the hostname or IP address of a smarthost where mail should be relayed.\n\n"
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
if [ -z "$SMARTHOST_USERNAME" ]; then
|
if [ -z "$SMARTHOST_USERNAME" ]; then
|
||||||
printf "\nYou must provide a username for smarthost authentication.\n\n"
|
printf "\nYou must provide a username for smarthost authentication.\n\n"
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
if [ -z "$SMARTHOST_PASSWORD" ]; then
|
if [ -z "$SMARTHOST_PASSWORD" ]; then
|
||||||
printf "\nYou must provide a password for smarthost authentication.\n\n"
|
printf "\nYou must provide a password for smarthost authentication.\n\n"
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# set failsafes
|
# set failsafes
|
||||||
|
Loading…
Reference in New Issue
Block a user