From 5834e79d8e24c0011ed703a7b486cccc20fd0d52 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 7 Feb 2019 13:28:08 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 09f8ae58..4d57b711 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -104,8 +104,7 @@ STATUS() { if [[ $(/sbin/ip -o -4 addr list ens192 | awk '{print $4}' | cut -d/ -f1) != *"${nip}"* ]] && [ "${isreplhost}" = "false" ]; then echo -e " ${idsST[Bold]}${idsCL[LightCyan]}iDS-Node${nid} (${nip})${idsST[Reset]}${idsCL[Default]}" DIVIDER false green - for rcheck in "${REPL_CHECK[@]}" - do + for rcheck in "${REPL_CHECK[@]}"; do c=0; cw=22; spc='' spc1=${cw}-${#REPL_DESC[${rcheck}]} timeout=`date --date='5 seconds' +%s` @@ -200,6 +199,7 @@ STATUS-CHECK(){ if [ "${nip}" = '10.5.10.51' ] && [ ! -z ${LOCAL_SERVICES+x} ]; then isreplhost=true; else isreplhost=false; fi if [[ $(/sbin/ip -o -4 addr list ens192 | awk '{print $4}' | cut -d/ -f1) != *"${nip}"* ]] && [ "${isreplhost}" = "false" ]; then for rcheck in "${REPL_CHECK[@]}"; do + timeout=`date --date='5 seconds' +%s` checked=false until [ "${checked}" = "" ]; do if [ "${NCMD}" = "" ]; then