Browse Source

added gotify to alerts.sh

pull/3509/head
jamie 4 years ago
parent
commit
505e9177b4
No known key found for this signature in database GPG Key ID: 98D3272368C9138
  1. 11
      lgsm/functions/alert.sh

11
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

Loading…
Cancel
Save