移除 run.sh中检查tuic配置文件逻辑

This commit is contained in:
Olia Lisa 2026-01-14 16:15:11 +08:00
parent d302342f02
commit 6ae6b7e0a9

View File

@ -14,16 +14,6 @@ run() {
# 检查bash是否安装 # 检查bash是否安装
check_bash_installed 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" local compose_file="$script_dir/../docker-compose.yml"
if docker-compose -f "$compose_file" ps | grep -q "Up"; then if docker-compose -f "$compose_file" ps | grep -q "Up"; then