Merge pull request #6592 from dataease/pr@dev-v2_version_check

refactor: 安装脚本增加版本判断
This commit is contained in:
fit2cloudrd 2023-11-08 15:34:10 +08:00 committed by GitHub
commit 19d93070b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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