From b46c16e0d673f730e6f16ec4482c03e9291926bf Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 1 Oct 2019 22:50:01 -0500 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 6dd6cc31..db155bd3 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -1304,12 +1304,11 @@ SERVICE(){ if [ "${1}" = "nginx" ]; then - if [ "${3}" != "q" ]; then - echo -en "${idsCL[LightYellow]}Waiting for nginx config replication across the nodes... ${idsCL[Default]}" - fi - if [ "${2}" = "restart" ] || [ "${2}" = "reload" ]; then + if [ [ "${2}" = "restart" ] || [ "${2}" = "reload" ] && [ "${3}" != "ns" ]; then + if [ "${3}" != "q" ]; then + echo -en "${idsCL[LightYellow]}Waiting for nginx config replication across the nodes... ${idsCL[Default]}" + fi PH_CMD="ssh root@${WEB_HOSTS[0]}" - ${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 checkhost=$(CHECK_HOST ${nip}) @@ -1322,6 +1321,7 @@ SERVICE(){ fi fi done + ${PH_CMD} rm -f /etc/nginx/test.repl fi fi if [ "${3}" != "q" ]; then