From 2bf9c89104e84c9f537e25d768a9403dbfe3652b Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 4 Jul 2023 13:42:04 -0500 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 7dc78326..257b8f78 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -1212,8 +1212,9 @@ GUI(){ update) ;; update-nodes) if [ "${2}" == "report" ]; then - rm -f ${NM_LOGFOLDER}/update-nodes.lastrun - NODEUPDATE ${2} ${3} > ${NM_LOGFOLDER}/update-nodes.lastrun + [ "${3}" == "sync" ] && ufile=update-nodes-sync.lastrun || ufile=update-nodes.lastrun + rm -f ${NM_LOGFOLDER}/${ufile} + NODEUPDATE ${2} ${3} > ${NM_LOGFOLDER}/${ufile} else NODEUPDATE ${2} ${3} fi