From bcbc8a633f9de7807c2b39be226912f5e8ae489f Mon Sep 17 00:00:00 2001 From: whyour Date: Sun, 6 Mar 2022 00:07:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=89=88=E6=9C=AC=E6=8B=B7?= =?UTF-8?q?=E8=B4=9D2.11.3=E4=BB=A5=E5=89=8D=E7=89=88=E6=9C=AC=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=88=B0data=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/update.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/shell/update.sh b/shell/update.sh index d1ce038b..c9e18dbd 100755 --- a/shell/update.sh +++ b/shell/update.sh @@ -304,6 +304,31 @@ patch_version() { git config --global pull.rebase false cp -f /ql/.env.example /ql/.env + + if [[ -d "/ql/db" ]]; then + echo -e "检测到旧的db目录,拷贝到data目录...\n" + cp -rf /ql/config /ql/data + echo + fi + + if [[ -d "/ql/scripts" ]]; then + echo -e "检测到旧的scripts目录,拷贝到data目录...\n" + cp -rf /ql/scripts /ql/data + echo + fi + + if [[ -d "/ql/log" ]]; then + echo -e "检测到旧的log目录,拷贝到data目录...\n" + cp -rf /ql/log /ql/data + echo + fi + + if [[ -d "/ql/config" ]]; then + echo -e "检测到旧的config目录,拷贝到data目录...\n" + cp -rf /ql/config /ql/data + echo + fi + } reload_pm2() {