diff --git a/defaults.inc b/defaults.inc index 65a48847..f9bc0111 100755 --- a/defaults.inc +++ b/defaults.inc @@ -256,6 +256,14 @@ CERT-CHECK(){ fi } +SENDNOTICE(){ + [ "${EMAIL_NOTICE}" != "" ] && echo -e "${2}\n\n$(date)" | mail -s "${1}" ${EMAIL_NOTICE} + [ "${PUSHOVER_APP_TOKEN}" != "" ] && PUSH_TO_MOBILE "${2} + +$(date)" "${1}" ${3} + +} +