jamie
4 years ago
No known key found for this signature in database
GPG Key ID: 98D3272368C9138
1 changed files with
11 additions and
0 deletions
-
lgsm/functions/alert.sh
|
|
@ -141,6 +141,17 @@ elif [ -z "${email}" ]&&[ "${commandname}" == "TEST-ALERT" ]; then |
|
|
|
fn_script_log_error "Email not set" |
|
|
|
fi |
|
|
|
|
|
|
|
if [ "${gotifyalert}" == "on" ]&&[ -n "${gotifyalert}" ]; then |
|
|
|
alert_gotify.sh |
|
|
|
elif [ "${gotifyalert}" != "on" ]&&[ "${commandname}" == "TEST-ALERT" ]; then |
|
|
|
fn_print_warn_nl "Gotify alerts not enabled" |
|
|
|
fn_script_log_warn "Gotify alerts not enabled" |
|
|
|
elif [ -z "${Gotifytoken}" ]&&[ "${commandname}" == "TEST-ALERT" ]; then |
|
|
|
fn_print_error_nl "Gotify token not set" |
|
|
|
echo -e "* https://docs.linuxgsm.com/alerts/gotify" |
|
|
|
fn_script_error "Gotify token not set" |
|
|
|
fi |
|
|
|
|
|
|
|
if [ "${iftttalert}" == "on" ]&&[ -n "${iftttalert}" ]; then |
|
|
|
alert_ifttt.sh |
|
|
|
elif [ "${iftttalert}" != "on" ]&&[ "${commandname}" == "TEST-ALERT" ]; then |
|
|
|