From 3d3cde43537f338d36ff2864320486a30ee6c355 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Sat, 30 Nov 2024 21:58:06 +0800 Subject: [PATCH] Update update_new.sh --- scripts/update_new.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/update_new.sh b/scripts/update_new.sh index 7c4d2ebd6..1f8caa7aa 100755 --- a/scripts/update_new.sh +++ b/scripts/update_new.sh @@ -6,6 +6,13 @@ is64bit=`getconf LONG_BIT` startTime=`date +%s` +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` echo "use system: ${_os}"