Update nodemgmt-scripts.sh

This commit is contained in:
2023-01-01 08:47:44 -06:00
parent 69b9877ced
commit 92a8405d6b

View File

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