From b4aa99adbf347e8a592b941cf1c2f449273073e0 Mon Sep 17 00:00:00 2001 From: aixianling Date: Thu, 20 Feb 2025 15:45:50 +0800 Subject: [PATCH] =?UTF-8?q?fix(DBServer,Gateway,LogicServer):=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E5=81=9C=E6=AD=A2=E8=84=9A=E6=9C=AC=E4=B8=AD=E7=9A=84?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E5=8F=98=E9=87=8F=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 DBServer、Gateway 和 LogicServer 的停止脚本中, 修正了服务变量 srv 的定义方式 - 将 "srv = \"服务名\"" 修改为 "srv = `\"服务名\"`" - 这个修改解决了脚本在执行时可能出现的语法错误, 确保了脚本的正确运行 --- DBServer/stop.sh | 2 +- Gateway/stop.sh | 2 +- LogicServer/stop.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/DBServer/stop.sh b/DBServer/stop.sh index f8ebf6e..bdc99ac 100755 --- a/DBServer/stop.sh +++ b/DBServer/stop.sh @@ -1,6 +1,6 @@ #!/bin/bash path=`pwd` -srv = "dbserver" +srv = `"dbserver"` datetime=`date "+%Y-%m-%d.%H:%M:%S"` curdoc=$(pwd|awk -F \/ '{print $NF}') diff --git a/Gateway/stop.sh b/Gateway/stop.sh index 88d9455..8c97a16 100755 --- a/Gateway/stop.sh +++ b/Gateway/stop.sh @@ -1,6 +1,6 @@ #!/bin/bash path=`pwd` -srv = "gateway" +srv = `"gateway"` datetime=`date "+%Y-%m-%d.%H:%M:%S"` curdoc=$(pwd|awk -F \/ '{print $NF}') diff --git a/LogicServer/stop.sh b/LogicServer/stop.sh index 86324f0..f24dad0 100755 --- a/LogicServer/stop.sh +++ b/LogicServer/stop.sh @@ -1,6 +1,6 @@ #!/bin/bash path=`pwd` -srv = "logicserver" +srv = `"logicserver"` datetime=`date "+%Y-%m-%d.%H:%M:%S"` curdoc=$(pwd|awk -F \/ '{print $NF}')