Procházet zdrojové kódy

emailnotification is around for legacy scripts

Daniel Gibbs před 9 roky
rodič
revize
e157ea2bd1
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      lgsm/functions/alert.sh

+ 2 - 2
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