From 3d552379bc6b2d340223e8f3408201d2b9525971 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Sun, 12 May 2024 12:55:14 +0800 Subject: [PATCH] update --- plugins/tidb/index.py | 2 +- plugins/tidb/install.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/tidb/index.py b/plugins/tidb/index.py index 2c4dbe2ea..ab0e08358 100755 --- a/plugins/tidb/index.py +++ b/plugins/tidb/index.py @@ -165,7 +165,7 @@ def initDreplace(): conf_list = ['tidb.conf', 'tidb.yaml'] dst_conf_init = getServerDir() + '/init.pl' - if os.path.exists(dst_conf_init): + if not os.path.exists(dst_conf_init): for conf in conf_list: dst_conf = getServerDir() + '/'+ conf src_conf = getPluginDir() + '/conf/'+ conf diff --git a/plugins/tidb/install.sh b/plugins/tidb/install.sh index 566cf9f28..00ab32e70 100755 --- a/plugins/tidb/install.sh +++ b/plugins/tidb/install.sh @@ -16,7 +16,7 @@ echo "use system: ${sysName}" # cd /Users/midoks/Desktop/mwdev/server/mdserver-web/plugins/tidb && bash install.sh install v7.5.1 # mw update_dev && cd /www/server/mdserver-web/plugins/tidb && bash install.sh install v7.5.1 - +# python3 /www/server/mdserver-web/plugins/tidb/index.py start # cd /www/server/source/tidb/tidb-community-server-v7.5.1-linux-amd64 && ./local_install.sh # tiup cluster deploy tidb v7.5.1 /www/server/tidb/tidb.yaml --user root -i /root/.ssh/id_rsa