Update nodemgmt-scripts.sh
This commit is contained in:
@@ -510,7 +510,6 @@ SERVICE(){
|
|||||||
|
|
||||||
|
|
||||||
if [ "${1}" = "nginx" ] && [ "${NGINX_PATHS[${NODE_TYPE}]}" != "" ]; then
|
if [ "${1}" = "nginx" ] && [ "${NGINX_PATHS[${NODE_TYPE}]}" != "" ]; then
|
||||||
echo ${NGINX_PATHS[${NODE_TYPE}]}
|
|
||||||
if [ "${2}" = "restart" ] || [ "${2}" = "reload" ]; then
|
if [ "${2}" = "restart" ] || [ "${2}" = "reload" ]; then
|
||||||
if [ "${3}" != "ns" ]; then
|
if [ "${3}" != "ns" ]; then
|
||||||
if [ "${3}" != "q" ]; then
|
if [ "${3}" != "q" ]; then
|
||||||
@@ -521,6 +520,7 @@ SERVICE(){
|
|||||||
else
|
else
|
||||||
PH_CMD="ssh root@${!NT_HOST}"
|
PH_CMD="ssh root@${!NT_HOST}"
|
||||||
fi
|
fi
|
||||||
|
echo $PH_CMD
|
||||||
${PH_CMD} touch ${NGINX_PATHS[${NODE_TYPE}]}/test.repl
|
${PH_CMD} touch ${NGINX_PATHS[${NODE_TYPE}]}/test.repl
|
||||||
# ${PH_CMD} "echo -e \"Service ${1} ${2}\" >> ${NGINX_PATHS[${NODE_TYPE}]}/test.repl"
|
# ${PH_CMD} "echo -e \"Service ${1} ${2}\" >> ${NGINX_PATHS[${NODE_TYPE}]}/test.repl"
|
||||||
for nip in "${!NT_HOSTS}"; do
|
for nip in "${!NT_HOSTS}"; do
|
||||||
|
|||||||
Reference in New Issue
Block a user