Update nodemgmt-scripts.sh

This commit is contained in:
2019-11-24 10:16:00 -06:00
parent aace1afda9
commit 2ccc6255bf

View File

@@ -1213,16 +1213,20 @@ SERVICE(){
checked=false checked=false
until [ "${checked}" = "" ]; do until [ "${checked}" = "" ]; do
checked="`${PH_CMD} \"ssh root@${nip} \"cat /etc/nginx/test.repl\" | diff - /etc/nginx/test.repl\"`" checked="`${PH_CMD} \"ssh root@${nip} \"cat /etc/nginx/test.repl\" | diff - /etc/nginx/test.repl\"`"
if [ "$NODE_TYPE" != "NC" ]; then
checked="`${PH_CMD} \"ssh root@${nip} \"cat /etc/letsencrypt/test.repl\" | diff - /etc/letsencrypt/test.repl\"`" checked="`${PH_CMD} \"ssh root@${nip} \"cat /etc/letsencrypt/test.repl\" | diff - /etc/letsencrypt/test.repl\"`"
fi
done done
fi fi
fi fi
done done
${PH_CMD} rm -f /etc/nginx/test.repl ${PH_CMD} rm -f /etc/nginx/test.repl
if [ "$NODE_TYPE" != "NC" ]; then
${PH_CMD} rm -f /etc/letsencrypt/test.repl ${PH_CMD} rm -f /etc/letsencrypt/test.repl
fi fi
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
@@ -1245,7 +1249,6 @@ SERVICE(){
else else
NCMD="ssh root@${nip}" NCMD="ssh root@${nip}"
fi fi
echo "2: $nip"
if [ "${3}" != "q" ]; then if [ "${3}" != "q" ]; then
echo -en "${NM_SRVCOPTS[${2}]}ing on ${NM_NODETYPES[$NTYPE]}-Node${nid} ($nip)... ${idsCL[Default]}" echo -en "${NM_SRVCOPTS[${2}]}ing on ${NM_NODETYPES[$NTYPE]}-Node${nid} ($nip)... ${idsCL[Default]}"
fi fi