Update nodemgmt-scripts.sh

This commit is contained in:
2023-01-01 10:14:38 -06:00
parent 5e0b502d6f
commit 1846ba0459

View File

@@ -2418,8 +2418,7 @@ if [ ${action-x} ]; then
backup) BACKUP;;
downlist)
if [ "${2}" = "report" ]; then
DOWN_LIST=`find ${FOLDER} -name "*.down"`
if [ "${DOWN_LIST}" != "" ]; then
if [ "$(`find ${FOLDER} -name "*.down"`)" != "" ]; then
rm -f ${FOLDER}/status-downlist.lastrun
DOWNLIST report >> ${FOLDER}/status-downlist.lastrun
STATUSLOG="$(cat ${FOLDER}/status-downlist.lastrun)"