Update nodemgmt-scripts.sh
This commit is contained in:
@@ -1304,12 +1304,11 @@ SERVICE(){
|
|||||||
|
|
||||||
|
|
||||||
if [ "${1}" = "nginx" ]; then
|
if [ "${1}" = "nginx" ]; then
|
||||||
if [ "${3}" != "q" ]; then
|
if [ [ "${2}" = "restart" ] || [ "${2}" = "reload" ] && [ "${3}" != "ns" ]; then
|
||||||
echo -en "${idsCL[LightYellow]}Waiting for nginx config replication across the nodes... ${idsCL[Default]}"
|
if [ "${3}" != "q" ]; then
|
||||||
fi
|
echo -en "${idsCL[LightYellow]}Waiting for nginx config replication across the nodes... ${idsCL[Default]}"
|
||||||
if [ "${2}" = "restart" ] || [ "${2}" = "reload" ]; then
|
fi
|
||||||
PH_CMD="ssh root@${WEB_HOSTS[0]}"
|
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"
|
${PH_CMD} "echo -e \"Service ${1} ${2}\" > /etc/nginx/test.repl"
|
||||||
for nip in "${WEB_HOSTS[@]}"; do
|
for nip in "${WEB_HOSTS[@]}"; do
|
||||||
checkhost=$(CHECK_HOST ${nip})
|
checkhost=$(CHECK_HOST ${nip})
|
||||||
@@ -1322,6 +1321,7 @@ SERVICE(){
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
${PH_CMD} rm -f /etc/nginx/test.repl
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [ "${3}" != "q" ]; then
|
if [ "${3}" != "q" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user