This commit is contained in:
2023-05-13 09:46:55 -05:00
parent e093c50357
commit f9f86debf1
2 changed files with 24 additions and 16 deletions

View File

@@ -1,5 +1,5 @@
VERS='1.108-05122023'
VERS='1.109-05122023'
noupdate=' stop start _service '
@@ -41,3 +41,11 @@ MAINHOSTS=(${MAINHOSTS})
SYSHOSTS=(${SYSHOSTS})
unset IFS
SENDNOTICE(){
[ "${PUSHOVER_APP_TOKEN}" != "" ] && PUSH_TO_MOBILE "${2}
$(date)" "${1}" ${3} &
[ "${EMAIL_NOTICE}" != "" ] && echo -e "${2}\n\n$(date)" | mail -s "${1}" ${EMAIL_NOTICE}
}