Update nodemgmt-scripts.sh

This commit is contained in:
2019-04-14 21:49:24 -05:00
parent 1b3d2639bd
commit 5899b98936

View File

@@ -1277,7 +1277,7 @@ SERVICE(){
${PH_CMD} rm -f /etc/nginx/test.repl
${PH_CMD} "echo -e \"Service ${1} ${2}\" > /etc/nginx/test.repl"
for nip in "${WEB_HOSTS[@]}"; do
if [[ $(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1) != *"${WEB_HOSTS[0]}"* ]]; then
if [ "${nip}" != "${WEB_HOSTS[0]}" ]; then
checked=false
until [ "${checked}" = "" ]; do
checked="`${PH_CMD} \"ssh root@${nip} \"cat /etc/nginx/test.repl\" | diff - /etc/nginx/test.repl\"`"