nutNotifyBoot use fct - no depend on other scripts + change systemd conditions

This commit is contained in:
belgotux
2023-01-04 03:22:53 +01:00
parent 187b910577
commit 749fde13dc
4 changed files with 36 additions and 38 deletions
+5 -1
View File
@@ -3,12 +3,16 @@
# EXAMPLE #
##################################
logfile=/var/log/nutNotify/nutNotify.log # logfile for nutNotify
flagfile=/var/log/nutNotify/nutShutdown.flag
curlBin="/usr/bin/curl"
mailBin="/usr/bin/mail"
subjectDefault="$HOSTNAME UPS event $argument on $ups@$server !" #default subject
bodyDefault="UPS event $argument on $ups at $(date +'%d-%m-%y %H:%M:%S')" # default body message
#--- Data for mail ---#
FROM="" #sender
dom=$(echo "$FROM" | awk -F'@' '{printf $2}') #don't change it
MAILTO="" #recipient(s)
subjectMail="$subjectDefault" #subject sent by mail
textMail="$bodyDefault" #body message sent by mail