From 02e80537896ef8ae4eb063c524602d826a7b10c0 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 1 Jan 2023 08:53:14 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 7c97f58f..863e0620 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -2420,20 +2420,19 @@ if [ ${action-x} ]; then update-dyndns) UPDATE_DYNDNS ${2};; backup) BACKUP;; downlist) + if [ -f /opt/idssys/nodemgmt/*.down ]; then if [ "${2}" = "report" ]; then - if [ -f /opt/idssys/nodemgmt/*.down ]; then + 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 - echo 'found' - else - echo 'none found' - fi + else DOWNLIST ${2} - fi;; + fi + fi;; status) if [ -f "${FOLDER}/status-check.running" ]; then fd=`stat --format=%Y "${FOLDER}/status-check.running"`