update
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
VERS='4.7.120-06212023'
|
VERS='4.7.124-06212023'
|
||||||
|
|
||||||
# NODETYPES=WEB
|
# NODETYPES=WEB
|
||||||
NODETYPES=LB,LPD,MM,MYSQL,NC,PW,WPD,WM,WEB
|
NODETYPES=LB,LPD,MM,MYSQL,NC,PW,WPD,WM,WEB
|
||||||
|
|||||||
@@ -520,7 +520,7 @@ SERVICE(){
|
|||||||
else
|
else
|
||||||
PH_CMD="ssh root@${!NT_HOST}"
|
PH_CMD="ssh root@${!NT_HOST}"
|
||||||
fi
|
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
|
# if [ "$NODE_TYPE" != "NC" ]; then
|
||||||
# ${PH_CMD} "echo -e \"Service ${1} ${2}\" > /etc/letsencrypt/test.repl"
|
# ${PH_CMD} "echo -e \"Service ${1} ${2}\" > /etc/letsencrypt/test.repl"
|
||||||
# fi
|
# fi
|
||||||
@@ -530,13 +530,13 @@ SERVICE(){
|
|||||||
if [ "${nip}" != "${!NT_HOST}" ]; then
|
if [ "${nip}" != "${!NT_HOST}" ]; then
|
||||||
checked=false
|
checked=false
|
||||||
until [ "${checked}" = "" ]; do
|
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\"`"
|
# 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
|
done
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
${PH_CMD} rm -f /etc/nginx/test.repl
|
${PH_CMD} rm -f /opt/lb-data/nginx/test.repl
|
||||||
# if [ "$NODE_TYPE" != "NC" ]; then
|
# if [ "$NODE_TYPE" != "NC" ]; then
|
||||||
# ${PH_CMD} rm -f /etc/letsencrypt/test.repl
|
# ${PH_CMD} rm -f /etc/letsencrypt/test.repl
|
||||||
# fi
|
# fi
|
||||||
|
|||||||
Reference in New Issue
Block a user