From dbfc2192149fc5eff9113b68403dd06f1a52f3f4 Mon Sep 17 00:00:00 2001 From: xuwei-fit2cloud Date: Mon, 18 Dec 2023 18:04:11 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BC=98=E5=8C=96=E8=BF=90?= =?UTF-8?q?=E8=A1=8C=E6=A8=A1=E5=BC=8F=E8=BD=AC=E6=8D=A2=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- installer/dectl | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/installer/dectl b/installer/dectl index c1a2707769..d157a9ecaa 100644 --- a/installer/dectl +++ b/installer/dectl @@ -43,6 +43,11 @@ function usage() { echo " clear-images 清理 DATAEASE 旧版本的相关镜像" echo " version 查看 DATAEASE 版本" } +function _generate_compose_file_args() { + if [[ $DE_INSTALL_MODE != "community" ]];then + compose_files="${compose_files} -f docker-compose-apisix.yml" + fi +} function _check_apisix_init() { if [[ $DE_INSTALL_MODE != "community" ]];then _prepare_apisix @@ -100,7 +105,7 @@ function _get_current_version() { function status() { echo echo "DataEase 容器运行状态" - _check_apisix_init + _generate_compose_file_args cd ${DE_RUNNING_BASE} ${compose_cmd} ${compose_files} ps @@ -137,7 +142,7 @@ function start() { } function stop() { echo - _check_apisix_init + _generate_compose_file_args cd ${DE_RUNNING_BASE} ${compose_cmd} ${compose_files} down -v ${target} }