diff --git a/installer/dectl b/installer/dectl index 3fd94546ad..f17e7df2b2 100644 --- a/installer/dectl +++ b/installer/dectl @@ -49,7 +49,10 @@ function usage() { } function _generate_compose_file_args() { if [[ $DE_INSTALL_MODE != "community" ]];then - compose_files="${compose_files} -f docker-compose-apisix.yml -f docker-compose-task.yml" + compose_files="${compose_files} -f docker-compose-apisix.yml" + if [[ -f $DE_RUNNING_BASE/docker-compose-task.yml ]];then + compose_files="${compose_files} -f docker-compose-task.yml" + fi fi } function _check_apisix_init() { diff --git a/installer/install.sh b/installer/install.sh index 49795034af..b8a3797ba1 100644 --- a/installer/install.sh +++ b/installer/install.sh @@ -23,7 +23,7 @@ if [ -f /usr/bin/dectl ]; then sed -i -e "s#DE_BASE=.*#DE_BASE=${DE_BASE}#g" dectl \cp dectl /usr/local/bin && chmod +x /usr/local/bin/dectl - if [[ ! -f /etc/systemd/system/dataease.service ]];then + if [[ -f /etc/systemd/system/dataease.service ]];then systemctl stop dataease else dectl stop