diff --git a/scripts/install_dev.sh b/scripts/install_dev.sh index a44795a5c..cde638325 100755 --- a/scripts/install_dev.sh +++ b/scripts/install_dev.sh @@ -11,7 +11,6 @@ if [ -f /www/server/mdserver-web/tools.py ];then exit 0 fi - echo -e "您正在安装的是\033[31mmdserver-web测试版\033[0m,非开发测试用途请使用正式版 install.sh !" echo -e "You are installing\033[31m mdserver-web dev version\033[0m, normally use install.sh for production.\n" sleep 1 diff --git a/scripts/install_new.sh b/scripts/install_new.sh index 608a2d556..cde638325 100755 --- a/scripts/install_new.sh +++ b/scripts/install_new.sh @@ -4,6 +4,13 @@ export PATH # LANG=en_US.UTF-8 is64bit=`getconf LONG_BIT` +if [ -f /www/server/mdserver-web/tools.py ];then + echo -e "存在旧版代码,不能安装!,已知风险的情况下" + echo -e "rm -rf /www/server/mdserver-web" + echo -e "可安装!" + exit 0 +fi + echo -e "您正在安装的是\033[31mmdserver-web测试版\033[0m,非开发测试用途请使用正式版 install.sh !" echo -e "You are installing\033[31m mdserver-web dev version\033[0m, normally use install.sh for production.\n" sleep 1