From 8b4be7fbd6f6335292eb635374bf73e1260b049a Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 31 Dec 2022 18:24:00 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 0e58f6ff..14247224 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -2387,15 +2387,15 @@ if [ ${action-x} ]; then update-nodes) NODEUPDATE ${2};; update-dyndns) UPDATE_DYNDNS ${2};; backup) BACKUP;; - ${EMAIL_NOTICE}) + downlist) if [ "${2}" = "report" ]; then - rm -f ${FOLDER}/status-${EMAIL_NOTICE}.lastrun - ${EMAIL_NOTICE} report >> ${FOLDER}/status-${EMAIL_NOTICE}.lastrun - STATUSLOG="$(cat ${FOLDER}/status-${EMAIL_NOTICE}.lastrun)" - echo -e "${EMAIL_NOTICE} Report\n${STATUSLOG}" | mail -s "${EMAIL_NOTICE} Report" david@schroedercity.com - echo -e "${EMAIL_NOTICE} Report\n${STATUSLOG}" | mail -s "${EMAIL_NOTICE} Report" 9208839613@mms.att.net + rm -f ${FOLDER}/status-downlist.lastrun + DOWNLIST report >> ${FOLDER}/status-downlist.lastrun + STATUSLOG="$(cat ${FOLDER}/status-$downlist.lastrun)" + echo -e "Downlist Report\n${STATUSLOG}" | mail -s "Downlist Report" david@schroedercity.com + echo -e "Downlist Report\n${STATUSLOG}" | mail -s "Downlist Report" 9208839613@mms.att.net else - ${EMAIL_NOTICE} ${2} + DOWNLIST ${2} fi;; status) if [ -f "${FOLDER}/status-check.running" ]; then @@ -2410,7 +2410,7 @@ if [ ${action-x} ]; then STATUS report > ${FOLDER}/status-check.lastrun if [ "${3}" = "email" ] && [ "${STATUS_CHECK_EMAIL}" != "" ]; then echo -e "\n\n" >> ${FOLDER}/status-check.lastrun - ${EMAIL_NOTICE} report >> ${FOLDER}/status-check.lastrun + DOWNLIST report >> ${FOLDER}/status-check.lastrun STATUSLOG="$(cat ${FOLDER}/status-check.lastrun)" echo -e "Status Report\n${STATUSLOG}" | mail -s "Status Report" david@schroedercity.com echo -e "Status Report\n${STATUSLOG}" | mail -s "Status Report" 9208839613@mms.att.net