From 2d09268c4d773cce1e56e7e4c82429e1f11f6c00 Mon Sep 17 00:00:00 2001 From: Olia Lisa Date: Wed, 10 Jun 2026 14:13:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9docker=20compose=20=E7=9A=84?= =?UTF-8?q?=E6=A3=80=E6=9F=A5=E6=96=B9=E5=BC=8F,=20=E6=94=BE=E5=85=A5?= =?UTF-8?q?=E5=88=B0run=E5=87=BD=E6=95=B0=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/run.sh | 2 ++ install.sh | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/run.sh b/bin/run.sh index 6d1a23b..e9713d3 100644 --- a/bin/run.sh +++ b/bin/run.sh @@ -1,6 +1,8 @@ #!/bin/bash run() { + check_docker_compose + local SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" # 脚本文件夹绝对路径 local COMPOSE_FILE="$SCRIPT_DIR/../docker-compose.yml" diff --git a/install.sh b/install.sh index 76fd2e6..4007d5d 100644 --- a/install.sh +++ b/install.sh @@ -164,7 +164,6 @@ main(){ 1) # 一键部署 install - check_docker_compose create_config port_manage allow $(get_listen_port "$CONFIG_FILE") # 开放端口 run @@ -181,7 +180,6 @@ main(){ ;; 4) # 启动 - check_docker_compose check_config_file "$CONFIG_FILE" port_manage allow $(get_listen_port "$CONFIG_FILE") # 开放端口 run