diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index b5a3f606..0cf32aad 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -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