From 1b58c2d1fff8163b906067b665cc4bfecba8156d Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Wed, 21 Jun 2023 21:37:57 -0500 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 7ad245ff..ce5577bc 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -520,7 +520,8 @@ SERVICE(){ else PH_CMD="ssh root@${!NT_HOST}" fi - ${PH_CMD} "echo -e \"Service ${1} ${2}\" > /opt/lb-data/nginx/test.repl" + touch /opt/lb-data/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