From b1890f3273405d0f800bb3b6a69009d444654bc9 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Wed, 6 Feb 2019 19:36:40 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index ae414379..cccb2cb9 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -79,14 +79,15 @@ NEWCERT(){ do_with_root chmod -R 6775 /etc/letsencrypt 2>&1 | tee /opt/idssys/nodemgmt/cert-request.lastrun yes | cp -rfH /opt/idssys/nodemgmt/cert-request.lastrun /etc/letsencrypt/cert-request.lastrun echo -en "${idsCL[LightYellow]}Waiting for certifcate replication between the nodes... ${idsCL[Default]}" - until [ "${synccheck}" = "" ]; do + synccheck=true + until [ -z ${synccheck} ]; do for nip in "${NODE_HOSTS[@]}"; do if [[ $(/sbin/ip -o -4 addr list ens192 | awk '{print $4}' | cut -d/ -f1) == *"${nip}"* ]]; then NCMD='' else NCMD="ssh root@${nip}" fi if [ "${NCMD}" != "" ]; then check=`${NCMD} "cat /etc/letsencrypt/cert-request.lastrun" | diff - /etc/letsencrypt/cert-request.lastrun` - synccheck="${synccheck}${check}" + #synccheck="${synccheck}${check}" fi done done