From 5899b989368c3b86a61c7eaed6901e89a1846188 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 14 Apr 2019 21:49:24 -0500 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 52a09efb..a2757b3d 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -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\"`"