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