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