forked from github/dataease
Merge pull request #7766 from dataease/pr@v2_fix_dectl
fix: 修复dectl脚本执行条件的判断逻辑
This commit is contained in:
commit
9089753efb
@ -244,8 +244,8 @@ function reload() {
|
|||||||
function version() {
|
function version() {
|
||||||
echo
|
echo
|
||||||
_get_current_version
|
_get_current_version
|
||||||
_get_latest_version
|
|
||||||
echo "current version is $current_version"
|
echo "current version is $current_version"
|
||||||
|
_get_latest_version
|
||||||
echo "latest version is $latest_version"
|
echo "latest version is $latest_version"
|
||||||
}
|
}
|
||||||
function upgrade() {
|
function upgrade() {
|
||||||
|
@ -20,7 +20,7 @@ if [ -f /usr/bin/dectl ]; then
|
|||||||
dectl stop
|
dectl stop
|
||||||
INSTALL_TYPE='upgrade'
|
INSTALL_TYPE='upgrade'
|
||||||
|
|
||||||
v2_version=$(dectl version |grep "^v2.")
|
v2_version=$(dectl version | head -n 2 | grep "v2.")
|
||||||
if [[ -z $v2_version ]];then
|
if [[ -z $v2_version ]];then
|
||||||
echo "系统当前版本不是 DataEase v2 版本系列,不支持升级到 v2,请检查离线包版本。"
|
echo "系统当前版本不是 DataEase v2 版本系列,不支持升级到 v2,请检查离线包版本。"
|
||||||
exit 1;
|
exit 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user