This commit is contained in:
2023-06-21 21:36:38 -05:00
parent b3b7bac7d4
commit 7720e6166e
2 changed files with 4 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env bash
VERS='4.7.120-06212023'
VERS='4.7.124-06212023'
# NODETYPES=WEB
NODETYPES=LB,LPD,MM,MYSQL,NC,PW,WPD,WM,WEB

View File

@@ -520,7 +520,7 @@ SERVICE(){
else
PH_CMD="ssh root@${!NT_HOST}"
fi
${PH_CMD} "echo -e \"Service ${1} ${2}\" > /etc/nginx/test.repl"
${PH_CMD} "echo -e \"Service ${1} ${2}\" > /opt/lb-data/nginx/test.repl"
# if [ "$NODE_TYPE" != "NC" ]; then
# ${PH_CMD} "echo -e \"Service ${1} ${2}\" > /etc/letsencrypt/test.repl"
# fi
@@ -530,13 +530,13 @@ SERVICE(){
if [ "${nip}" != "${!NT_HOST}" ]; then
checked=false
until [ "${checked}" = "" ]; do
checked="`${PH_CMD} \"ssh root@${nip} '[ -f /etc/nginx/test.repl ] && cat /etc/nginx/test.repl' | diff - /etc/nginx/test.repl >/dev/null 2>&1\"`"
checked="`${PH_CMD} \"ssh root@${nip} '[ -f /opt/lb-data/nginx/test.repl ] && cat /opt/lb-data/nginx/test.repl' | diff - /opt/lb-data/nginx/test.repl >/dev/null 2>&1\"`"
# 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
fi
done
${PH_CMD} rm -f /etc/nginx/test.repl
${PH_CMD} rm -f /opt/lb-data/nginx/test.repl
# if [ "$NODE_TYPE" != "NC" ]; then
# ${PH_CMD} rm -f /etc/letsencrypt/test.repl
# fi