Update nodemgmt-scripts.sh

This commit is contained in:
2019-11-24 10:14:48 -06:00
parent aaf6f455d9
commit aace1afda9

View File

@@ -1202,9 +1202,10 @@ SERVICE(){
else
PH_CMD="ssh root@${!NT_HOST}"
fi
echo "H: $PH_CMD"
${PH_CMD} "echo -e \"Service ${1} ${2}\" > /etc/nginx/test.repl"
${PH_CMD} "echo -e \"Service ${1} ${2}\" > /etc/letsencrypt/test.repl"
if [ "$NODE_TYPE" != "NC" ]; then
${PH_CMD} "echo -e \"Service ${1} ${2}\" > /etc/letsencrypt/test.repl"
fi
for nip in "${!NT_HOSTS}"; do
checkhost=$(CHECK_HOST ${nip})
if [ "${checkhost}" != "false" ]; then