diff --git a/installer/install.sh b/installer/install.sh index 54e87767e5..2a56975ba1 100644 --- a/installer/install.sh +++ b/installer/install.sh @@ -19,6 +19,12 @@ if [ -f /usr/bin/dectl ]; then DE_BASE=$(grep "^DE_BASE=" /usr/bin/dectl | cut -d'=' -f2) dectl stop INSTALL_TYPE='upgrade' + + v2_version=$(dectl version |grep "^v2.") + if [[ -z $v2_version ]];then + echo "系统当前版本不是 DataEase v2 版本系列,不支持升级到 v2,请检查离线包版本。" + exit 1; + fi fi set -a