From 15f461b1ddcea6d941cd5279b3ef377622cae0a5 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 31 Dec 2022 18:16:28 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index eed025f2..6d569196 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -2383,7 +2383,16 @@ if [ ${action-x} ]; then update-nodes) NODEUPDATE ${2};; update-dyndns) UPDATE_DYNDNS ${2};; backup) BACKUP;; - downlist) DOWNLIST ${2};; + downlist) + if [ "${2}" = "report" ]; then + DOWNLIST report >> ${FOLDER}/status-downlist.lastrun + STATUSLOG="$(cat ${FOLDER}/status-downlist.lastrun)" + echo "Status Report\n\n${STATUSLOG}" | mail -s "Status Report" david@schroedercity.com + echo "Status Report\n\n${STATUSLOG}" | mail -s "Status Report" 9208839613@mms.att.net + else + DOWNLIST ${2};; + fi + status) if [ -f "${FOLDER}/status-check.running" ]; then fd=`stat --format=%Y "${FOLDER}/status-check.running"`