From f776c0b7cdd4e9cdf6535deecef72c892f4e3daa Mon Sep 17 00:00:00 2001 From: xuwei-fit2cloud Date: Thu, 8 Feb 2024 11:35:12 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BC=98=E5=8C=96=20dectl=20?= =?UTF-8?q?=E8=84=9A=E6=9C=AC=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- installer/dectl | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/installer/dectl b/installer/dectl index 2c637e5e78..245a189349 100644 --- a/installer/dectl +++ b/installer/dectl @@ -57,14 +57,6 @@ function _check_apisix_init() { _prepare_apisix fi } -function _check_task_init() { - if [[ $DE_INSTALL_MODE != "community" ]];then - _prepare_task - fi -} -function _prepare_task() { - compose_files="${compose_files} -f docker-compose-task.yml" -} function _prepare_apisix() { if [[ -z $DE_APISIX_KEY ]];then need_init_apisix=true @@ -75,7 +67,6 @@ function _prepare_apisix() { sed -i -e "s/DE_APISIX_KEY/${DE_APISIX_KEY}/g" $DE_RUNNING_BASE/apisix/apisix_conf/config.yaml sed -i -e "s/DE_APISIX_KEY/${DE_APISIX_KEY}/g" $DE_RUNNING_BASE/conf/application.yml fi - compose_files="${compose_files} -f docker-compose-apisix.yml" } function _init_apisix() { DE_APISIX_KEY=$DE_APISIX_KEY sh $DE_RUNNING_BASE/bin/apisix/init.sh @@ -222,7 +213,7 @@ function status() { function start() { echo _check_apisix_init - _check_task_init + _generate_compose_file_args cd ${DE_RUNNING_BASE} ${compose_cmd} ${compose_files} up -d _healthcheck