From 86fa741d588cc43c1d459fdd36b652fcf4ec0828 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 24 Nov 2019 16:59:21 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index dcd3607d..6d603672 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -1414,15 +1414,15 @@ NODEUPDATE() { if [[ $(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1) == *"${nip}"* ]]; then nip='localhost ' fi - c=0; cw=15; spc='' + c=0; cw=15; spca='' spc1=${cw}-7 - until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done - echo -en "Updating MySQL-Manager${spc}($nip)...${idsCL[Default]}" - ssh root@${nip} "nodemgmt update q" - c=0; cw=13; spc='' + until [ $c = ${spc1} ]; do spca="${spca} "; c=`expr $c + 1`; done + c=0; cw=14; spcb='' spc1=${cw}-${#nip} - until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done - echo -e "${spc}${idsCL[Green]}COMPLETE${idsCL[Default]}" + until [ $c = ${spc1} ]; do spcb="${spcb} "; c=`expr $c + 1`; done + echo -en "Updating MySQL-Manager${spca}($nip)${spcb}... ${idsCL[Default]}" + ssh root@${nip} "nodemgmt update q" + echo -e "${idsCL[Green]}COMPLETE${idsCL[Default]}" echo for NTYPE in "${NODE_TYPES[@]}"; do nid=1