|
@ -71,6 +71,15 @@ fn_alert_permissions(){ |
|
|
alertbody="${servicename} has permissions issues" |
|
|
alertbody="${servicename} has permissions issues" |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
fn_alert_config(){ |
|
|
|
|
|
fn_script_log_info "Sending alert: New _default.cfg" |
|
|
|
|
|
alertsubject="Alert - ${servicename} - New _default.cfg" |
|
|
|
|
|
alertemoji="🎮" |
|
|
|
|
|
alertsound="1" |
|
|
|
|
|
alerturl="not enabled" |
|
|
|
|
|
alertbody="${servicename} has recieved a new _default.cfg. Check file for changes." |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if [ "${alert}" == "permissions" ]; then |
|
|
if [ "${alert}" == "permissions" ]; then |
|
|
fn_alert_permissions |
|
|
fn_alert_permissions |
|
|
elif [ "${alert}" == "restart" ]; then |
|
|
elif [ "${alert}" == "restart" ]; then |
|
@ -81,6 +90,8 @@ elif [ "${alert}" == "test" ]; then |
|
|
fn_alert_test |
|
|
fn_alert_test |
|
|
elif [ "${alert}" == "update" ]; then |
|
|
elif [ "${alert}" == "update" ]; then |
|
|
fn_alert_update |
|
|
fn_alert_update |
|
|
|
|
|
elif [ "${alert}" == "config" ]; then |
|
|
|
|
|
fn_alert_config |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
# Generate alert log |
|
|
# Generate alert log |
|
|