Update nodemgmt-scripts.sh

This commit is contained in:
2022-07-24 19:02:44 -05:00
parent e312d820e5
commit 2b604e814b

View File

@@ -1962,6 +1962,7 @@ if [ ${action-x} ]; then
rm -f ${FOLDER}/status-check.lastrun
STATUS report > ${FOLDER}/status-check.lastrun
if [ "${3}" = "email" ] && [ "${STATUS_CHECK_EMAIL}" != "" ]; then
echo "\r\r"
DOWNLIST report > ${FOLDER}/status-check.lastrun
STATUSLOG="$(cat ${FOLDER}/status-check.lastrun)"
echo "Status Report\n\n${STATUSLOG}" | mail -s "Status Report" david@schroedercity.com