Update nodemgmt-scripts.sh

This commit is contained in:
2023-08-06 19:07:37 -05:00
parent 8c5e4b037d
commit 179527de4e

View File

@@ -340,9 +340,6 @@ NODEUPDATE() {
echo
nmdiv=$(ssh -tq root@${nmip} ls -l --time-style=+%s ${NM_FOLDER}/conf/defaults.local.inc | cut -d ' ' -f 6)
nmsdc=$(ssh -tq root@${nmip} ls -l --time-style=+%s ${NM_FOLDER}/conf/ssl-domain-checks.conf | cut -d ' ' -f 6)
for NTYPE in "${NM_NODE_TYPES[@]}"; do
nid=1
var=${NTYPE}_HOSTS[@]
@@ -374,6 +371,9 @@ NODEUPDATE() {
# echo -e "${idsCL[Green]}Updated${idsCL[Default]}"
else
nmdiv=$(ssh -tq root@${nmip} ls -l --time-style=+%s ${NM_FOLDER}/conf/defaults.local.inc | cut -d ' ' -f 6)
nmsdc=$(ssh -tq root@${nmip} ls -l --time-style=+%s ${NM_FOLDER}/conf/ssl-domain-checks.conf | cut -d ' ' -f 6)
echo -en " ~ ${idsCL[LightCyan]}Sync Shared Nodemgmt Defaults${idsCL[Default]} : "
if ssh -tq root@${nip} [[ ! -f ${NM_FOLDER}/conf/defaults.local.inc ]] ||
ssh -tq root@${nip} [[ ! -f ${NM_FOLDER}/conf/ssl-domain-checks.conf ]] ||