Update nodemgmt-scripts.sh
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user