Update nodemgmt-scripts.sh

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

View File

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