From 755d52732c6de92f3ad9b28c4d47056f625cafb5 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 4 Jul 2023 16:22:05 -0500 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 6a5dc24b..5a8fced0 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -829,7 +829,7 @@ NODEUPDATE() { else echo -en " ~ ${idsCL[LightCyan]}Sync Defaults${idsCL[Default]} : " - if [ ${nmdiv} -ne $(ssh -tq root@${nip} ls -l --time-style=+%s ${NM_FOLDER}/defaults.local.inc | cut -d ' ' -f 6) ]; then + if ssh -tq root@${nip} [[ ! -f /opt/idssys/nodemgmt/defaults.local.inc ]] || [ ${nmdiv} -ne $(ssh -tq root@${nip} ls -l --time-style=+%s ${NM_FOLDER}/defaults.local.inc | cut -d ' ' -f 6) ]; then rsync -az ${NM_FOLDER}/defaults.local.inc root@${nip}:${NM_FOLDER}/ >/dev/null 2>&1 echo -e "${idsCL[Green]}Synced${idsCL[Default]}" else