Update nodemgmt-scripts.sh

This commit is contained in:
2023-07-04 13:42:04 -05:00
parent 3d2d8db3b1
commit 2bf9c89104

View File

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