mirror of
https://github.com/dataease/dataease.git
synced 2025-02-24 03:22:56 +08:00
refactor: 安装脚本增加版本判断
This commit is contained in:
parent
0451646e0b
commit
f85b6b2f03
@ -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