From 7720e6166ed52ad482f4b1c7cef17842f9685f89 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Wed, 21 Jun 2023 21:36:38 -0500 Subject: [PATCH] update --- defaults.inc | 2 +- nodemgmt-scripts.sh | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/defaults.inc b/defaults.inc index 8bdeff77..b0c13413 100755 --- a/defaults.inc +++ b/defaults.inc @@ -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 diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 1cf3bd42..7ad245ff 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -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