Update defaults.inc

This commit is contained in:
2025-06-14 16:30:00 -05:00
parent 45f93b6f70
commit 1eb5f95f31

View File

@@ -31,9 +31,10 @@ else
fi
SENDNOTICE(){
[ -n ${NM_HOSTNAMES[${RNIP}]} ] && shost=${NM_HOSTNAMES[${RNIP}]} || shost=$(hostname -f)
[ "${PUSHOVER_APP_TOKEN}" != "" ] && PUSH_TO_MOBILE "${2}
$(date)" "${1}" ${3} &
[${shost}] $(date)" "${1}" ${3} &
[ "${EMAIL_NOTICE}" != "" ] && echo -e "${2}\n\n$(date)" | mail -s "${1}" ${EMAIL_NOTICE}