Update nodemgmt-scripts.sh

This commit is contained in:
2020-09-27 12:28:29 -05:00
parent 4afaba4470
commit 3cd238c57b

View File

@@ -1377,10 +1377,8 @@ SERVICE(){
if [ "${nip}" != "${!NT_HOST}" ]; then
checked=false
until [ "${checked}" = "" ]; do
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\"`"
fi
checked="`${PH_CMD} \"ssh root@${nip} \"if [ -f /etc/nginx/test.repl ]; then cat /etc/nginx/test.repl\" | diff - /etc/nginx/test.repl; fi\"`"
checked="`${PH_CMD} \"ssh root@${nip} \"if [ -f /etc/nginx/test.repl ]; then cat /etc/letsencrypt/test.repl\" | diff - /etc/letsencrypt/test.repl; fi\"`"
done
fi
fi