Update nodemgmt-scripts.sh

This commit is contained in:
2019-10-01 22:54:49 -05:00
parent b8d2b52111
commit b2f4cfe9c1

View File

@@ -1304,7 +1304,8 @@ SERVICE(){
if [ "${1}" = "nginx" ]; then if [ "${1}" = "nginx" ]; then
if [ [ "${2}" = "restart" ] || [ "${2}" = "reload" ] ] && [ "${3}" != "ns" ]; then if [ "${2}" = "restart" ] || [ "${2}" = "reload" ]; then
if [ "${3}" != "ns" ]; then
if [ "${3}" != "q" ]; then if [ "${3}" != "q" ]; then
echo -en "${idsCL[LightYellow]}Waiting for nginx config replication across the nodes... ${idsCL[Default]}" echo -en "${idsCL[LightYellow]}Waiting for nginx config replication across the nodes... ${idsCL[Default]}"
fi fi
@@ -1324,6 +1325,7 @@ SERVICE(){
${PH_CMD} rm -f /etc/nginx/test.repl ${PH_CMD} rm -f /etc/nginx/test.repl
fi fi
fi fi
fi
if [ "${3}" != "q" ]; then if [ "${3}" != "q" ]; then
echo -e "${idsCL[Green]}Completed${idsCL[Default]}" echo -e "${idsCL[Green]}Completed${idsCL[Default]}"
echo echo