From e157ea2bd10333505b0d4a4bbecb814044bcbbec Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Fri, 29 Jul 2016 18:43:04 +0100 Subject: [PATCH] emailnotification is around for legacy scripts --- lgsm/functions/alert.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lgsm/functions/alert.sh b/lgsm/functions/alert.sh index 9cef86e95..5aaf3103e 100644 --- a/lgsm/functions/alert.sh +++ b/lgsm/functions/alert.sh @@ -41,9 +41,9 @@ elif [ "${alert}" == "test" ]; then fn_alert_test fi -if [ "${emailalert}" == "on" ]&&[ -n "${email}" ]; then +if [ "${emailnotification}" == "on" ]||[ "${emailalert}" == "on" ]&&[ -n "${email}" ]; then alert_email.sh -elif [ "${emailalert}" != "on" ]&&[ "${function_selfname}" == "command_test_alert.sh" ]; then +elif [ "${emailnotification}" != "on" ]||[ "${emailalert}" != "on" ]&&[ "${function_selfname}" == "command_test_alert.sh" ]; then fn_print_warn_nl "Email alerts not enabled" fn_script_log_warn "Email alerts not enabled" elif [ -z "${email}" ]&&[ "${function_selfname}" == "command_test_alert.sh" ]; then