From 019594cee7582f8a45b34c3684f43ea022ca0400 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Fri, 1 Nov 2024 02:52:34 +0800 Subject: [PATCH] update --- scripts/install.sh | 1 + scripts/install_dev.sh | 1 + scripts/update.sh | 1 + scripts/update_dev.sh | 1 + 4 files changed, 4 insertions(+) diff --git a/scripts/install.sh b/scripts/install.sh index 9140c99e0..386f36c25 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -8,6 +8,7 @@ if [ -f /www/server/mdserver-web/tools.py ];then echo -e "存在旧版代码,不能安装!,已知风险的情况下" echo -e "rm -rf /www/server/mdserver-web" echo -e "可安装!" + exit 0 fi LOG_FILE=/var/log/mw-install.log diff --git a/scripts/install_dev.sh b/scripts/install_dev.sh index c90603f0f..a44795a5c 100755 --- a/scripts/install_dev.sh +++ b/scripts/install_dev.sh @@ -8,6 +8,7 @@ if [ -f /www/server/mdserver-web/tools.py ];then echo -e "存在旧版代码,不能安装!,已知风险的情况下" echo -e "rm -rf /www/server/mdserver-web" echo -e "可安装!" + exit 0 fi diff --git a/scripts/update.sh b/scripts/update.sh index d65b99b03..57cf80600 100755 --- a/scripts/update.sh +++ b/scripts/update.sh @@ -10,6 +10,7 @@ if [ -f /www/server/mdserver-web/tools.py ];then echo -e "存在旧版代码,不能安装!,已知风险的情况下" echo -e "rm -rf /www/server/mdserver-web" echo -e "可安装!" + exit 0 fi diff --git a/scripts/update_dev.sh b/scripts/update_dev.sh index 6cc99fc05..1f8caa7aa 100755 --- a/scripts/update_dev.sh +++ b/scripts/update_dev.sh @@ -10,6 +10,7 @@ if [ -f /www/server/mdserver-web/tools.py ];then echo -e "存在旧版代码,不能安装!,已知风险的情况下" echo -e "rm -rf /www/server/mdserver-web" echo -e "可安装!" + exit 0 fi _os=`uname`