Update nodemgmt-scripts.sh

This commit is contained in:
2019-03-27 00:10:55 -05:00
parent 1ea172415d
commit e4d3420585

View File

@@ -1405,13 +1405,13 @@ 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]}"
if [[ $(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1) == *"${MYSQLMANAGER}"* ]]; then
if [[ $(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1) != *"${MYSQLMANAGER}"* ]]; then
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"
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