Update nodemgmt-scripts.sh

This commit is contained in:
2022-12-31 18:20:38 -06:00
parent ebd9b907f3
commit d21b92d900

View File

@@ -2392,8 +2392,8 @@ if [ ${action-x} ]; then
rm -f ${FOLDER}/status-downlist.lastrun rm -f ${FOLDER}/status-downlist.lastrun
DOWNLIST report >> ${FOLDER}/status-downlist.lastrun DOWNLIST report >> ${FOLDER}/status-downlist.lastrun
STATUSLOG="$(cat ${FOLDER}/status-downlist.lastrun)" STATUSLOG="$(cat ${FOLDER}/status-downlist.lastrun)"
echo -e "Status Report\n\n${STATUSLOG}" | mail -s "Status Report" david@schroedercity.com echo -e "Downlist Report\n${STATUSLOG}" | mail -s "Status Report" david@schroedercity.com
echo -e "Status Report\n\n${STATUSLOG}" | mail -s "Status Report" 9208839613@mms.att.net echo -e "Downlist Report\n${STATUSLOG}" | mail -s "Status Report" 9208839613@mms.att.net
else else
DOWNLIST ${2} DOWNLIST ${2}
fi;; fi;;
@@ -2412,8 +2412,8 @@ if [ ${action-x} ]; then
echo -e "\n\n" >> ${FOLDER}/status-check.lastrun echo -e "\n\n" >> ${FOLDER}/status-check.lastrun
DOWNLIST report >> ${FOLDER}/status-check.lastrun DOWNLIST report >> ${FOLDER}/status-check.lastrun
STATUSLOG="$(cat ${FOLDER}/status-check.lastrun)" STATUSLOG="$(cat ${FOLDER}/status-check.lastrun)"
echo "Status Report\n\n${STATUSLOG}" | mail -s "Status Report" david@schroedercity.com echo -e "Status Report\n${STATUSLOG}" | mail -s "Status Report" david@schroedercity.com
echo "Status Report\n\n${STATUSLOG}" | mail -s "Status Report" 9208839613@mms.att.net echo -e "Status Report\n${STATUSLOG}" | mail -s "Status Report" 9208839613@mms.att.net
fi fi
else else
STATUS ${2} STATUS ${2}