install_amavis.sh: fix entering procedure of variable 'SASL_AUTH_ENABLED'.
This commit is contained in:
@@ -396,8 +396,13 @@ while [[ "$SASL_AUTH_ENABLED" != "yes" &&
|
||||
SASL_AUTH_ENABLED=${SASL_AUTH_ENABLED,,}
|
||||
fi
|
||||
|
||||
if [[ "$SASL_AUTH_ENABLED" != "yes" && "$SASL_AUTH_ENABLED" != "no" ]] ; then
|
||||
_SASL_AUTH_ENABLED=""
|
||||
[[ -z "${SASL_AUTH_ENABLED}" ]] && SASL_AUTH_ENABLED=${_SASL_AUTH_ENABLED}
|
||||
|
||||
if [[ "$SASL_AUTH_ENABLED" != "yes" &&
|
||||
"$SASL_AUTH_ENABLED" != "true" &&
|
||||
"$SASL_AUTH_ENABLED" != "false" &&
|
||||
"$SASL_AUTH_ENABLED" != "no" ]] ; then
|
||||
SASL_AUTH_ENABLED=""
|
||||
echo -e "\n\t\033[33m\033[1mWrong entry!\033[m\n Type 'yes' or 'no'"
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user