diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index efbb0180..2895c98d 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -2389,6 +2389,7 @@ if [ ${action-x} ]; then backup) BACKUP;; downlist) if [ "${2}" = "report" ]; then + rm -f ${FOLDER}/status-downlist.lastrun DOWNLIST report >> ${FOLDER}/status-downlist.lastrun STATUSLOG="$(cat ${FOLDER}/status-downlist.lastrun)" echo -e "Status Report\n\n${STATUSLOG}" | mail -s "Status Report" david@schroedercity.com