From d92c1f5a7428093e843166395efa9a2ee9aa5e9a Mon Sep 17 00:00:00 2001 From: "PC-202302260912\\Administrator" <1769111741@qq.com> Date: Wed, 26 Jul 2023 17:49:30 +0800 Subject: [PATCH] =?UTF-8?q?gm=E6=9B=B4=E6=96=B0=E8=84=9A=E6=9C=AC=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- update_gm.sh | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/update_gm.sh b/update_gm.sh index bcc250e..4b3bcd1 100644 --- a/update_gm.sh +++ b/update_gm.sh @@ -18,7 +18,6 @@ TABLE_DIR="/data/update/project/${table}" ip=$2 file=txt/gm_ip.txt - #excel cd ${TABLE_DIR}/data_excel/ svn up @@ -31,23 +30,19 @@ git pull mvn clean package -#file -#\cp -rf ${BASE_DIR}/conf/server/ItemConfig.txt ${BASE_DIR}/conf/jsonconf/ -#\cp -rf ${BASE_DIR}/conf/server/RechargeCommodityConfig.txt ${BASE_DIR}/conf/jsonconf/ - if [ ! -z ${ip} ];then - update $ip -#fi - + update ${ip} ${TABLE_DIR} ${BASE_DIR} else for i in `awk '{print $2}' /data/jieling/scripts/$file` do - update $i + update $i ${TABLE_DIR} ${BASE_DIR} done fi update(){ ip=${1} + TABLE_DIR=${2} + BASE_DIR=${3} echo "开始更新 ${ip} " #表文件 scp -r ${TABLE_DIR}/miduo_server/conf/server/ItemConfig.txt ${ip}:/data/jieling/gm/config/jsonconf/