Update nodemgmt-scripts.sh

This commit is contained in:
2022-12-31 18:16:28 -06:00
parent 13365aabb2
commit 15f461b1dd

View File

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