Update nodemgmt-scripts.sh

This commit is contained in:
2023-06-21 21:41:34 -05:00
parent f9f20d409c
commit cc4a5b6600

View File

@@ -531,7 +531,7 @@ SERVICE(){
if [ "${nip}" != "${!NT_HOST}" ]; then
checked=false
until [ "${checked}" = "" ]; do
checked="`${PH_CMD} \"ssh root@${nip} '[ -f /opt/lb-data/nginx/test.repl ] && cat -u /opt/lb-data/nginx/test.repl' | diff -q - /opt/lb-data/nginx/test.repl >/dev/null 2>&1\"`"
checked="`${PH_CMD} \"ssh root@${nip} '[ -f /opt/lb-data/nginx/test.repl ] && cat -u /opt/lb-data/nginx/test.repl' | diff -q - /opt/lb-data/nginx/test.repl\"`"
# checked="`${PH_CMD} \"ssh root@${nip} 'if [ -f /etc/nginx/test.repl ]; then cat /etc/letsencrypt/test.repl; fi' | diff - /etc/letsencrypt/test.repl\"`"
done
fi