This commit is contained in:
2024-01-06 21:09:44 -06:00
parent 580b014015
commit de82f825e9
2 changed files with 37 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env bash
VERS='5.1.55-01062024'
NM_BETA=false
VERS='5.1.56a-01062024'
NM_BETA=true
noheader=' service status-check nightlyrephp7.3-fpm,new backup report check checkcerts gitea update-nodes copynpmcerts singleservercheck update-dyndns backup-offsitepfsense gui nightlyreview update log betacheck '
CERT_DAEMON='/snap/bin/certbot'
@@ -209,9 +209,13 @@ DISP_HEADER(){
}
SENDNOTICE(){
[ "${PUSHOVER_USER_TOKEN}" != "" ] && PUSH_TO_MOBILE "${2}
if [ "${PUSHOVER_USER_TOKEN}" != "" ]; then
SN_TIT="$(echo -e "${1}" | sed "s/\%/\%25 /g")"
SN_MSG="$(echo -e "${2}" | sed "s/\%/\%25 /g")"
PUSH_TO_MOBILE "${SN_MSG}
$(date)" "${1}" ${3} &
$(date)" "${SN_TIT}" ${3} &
fi
[ "${EMAIL_NOTICE}" != "" ] && echo -e "${2}\n\n$(date)" | mail -s "${1}" ${EMAIL_NOTICE}
}