From 6ae6b7e0a986021ac4679e03a8a68bbc59fa0fe9 Mon Sep 17 00:00:00 2001 From: Olia Lisa Date: Wed, 14 Jan 2026 16:15:11 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=20run.sh=E4=B8=AD=E6=A3=80?= =?UTF-8?q?=E6=9F=A5tuic=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/run.sh | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/bin/run.sh b/bin/run.sh index 852cb74..7cb7b83 100644 --- a/bin/run.sh +++ b/bin/run.sh @@ -14,16 +14,6 @@ run() { # 检查bash是否安装 check_bash_installed - # 如果配置没有创建 - local config_file="$config_dir/config.json" - if [ ! -e "$config_file" ]; then - touch "$config_file" - fi - local password=$(jq -r '.inbounds[0].users[0].password' "$config_file") - if [ ! -s "$config_file" ] || [ "$password" = "你的密码" ]; then - bash "$script_dir/create_config.sh" # 创建配置 - fi - # 如果容器已经启动, 则先停止容器 local compose_file="$script_dir/../docker-compose.yml" if docker-compose -f "$compose_file" ps | grep -q "Up"; then