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