|
@ -357,3 +357,14 @@ elif [ -z "${slacktoken}" ] && [ "${commandname}" == "TEST-ALERT" ]; then |
|
|
echo -e "* https://docs.linuxgsm.com/alerts/slack" |
|
|
echo -e "* https://docs.linuxgsm.com/alerts/slack" |
|
|
fn_script_error "Slack token not set" |
|
|
fn_script_error "Slack token not set" |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
if [ "${ntfyalert}" == "on" ] && [ -n "${ntfytopic}" ]; then |
|
|
|
|
|
alert_ntfy.sh |
|
|
|
|
|
elif [ "${ntfyalert}" != "on" ] && [ "${commandname}" == "TEST-ALERT" ]; then |
|
|
|
|
|
fn_print_warn_nl "ntfy alerts not enabled" |
|
|
|
|
|
fn_script_log_warn "ntfy alerts not enabled" |
|
|
|
|
|
elif [ -z "${ntfytopic}" ] && [ "${commandname}" == "TEST-ALERT" ]; then |
|
|
|
|
|
fn_print_error_nl "ntfy topic not set" |
|
|
|
|
|
echo -e "* https://docs.linuxgsm.com/alerts/ntfy" |
|
|
|
|
|
fn_script_error "ntfy topic not set" |
|
|
|
|
|
fi |
|
|