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}"