From 6501ac3aaada6e51276e3983d2c758d4f92d29ce Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 1 Oct 2019 23:40:16 -0500 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index b18551fc..9a88321c 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -1373,7 +1373,17 @@ NODEUPDATE() { declare -i cw; declare -i spc1; declare -i c echo -e "${idsCL[LightGreen]}Updating All Nodes and Webservers${idsCL[Default]}" echo -e "${idsCL[LightGreen]}-------------------------------------------${idsCL[Default]}" - + nip=${MYSQLMANAGER} + c=0; cw=15; spc='' + 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@${MYSQLMANAGER} "nodemgmt update q" + c=0; cw=13; spc='' + spc1=${cw}-${#nip} + until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done + echo -e "${spc}${idsCL[Green]}COMPLETE${idsCL[Default]}" + echo for NTYPE in "${NODE_TYPES[@]}"; do nid=1 var=${NTYPE}_HOSTS[@]