Update nodemgmt-scripts.sh

This commit is contained in:
2022-12-31 18:19:43 -06:00
parent eeb4e81924
commit ebd9b907f3

View File

@@ -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