forked from github/dataease
Merge pull request #6592 from dataease/pr@dev-v2_version_check
refactor: 安装脚本增加版本判断
This commit is contained in:
commit
19d93070b9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user