From 73073834515c33e4f6c205c4c48a1adc8a7ac1a5 Mon Sep 17 00:00:00 2001 From: Kiolow Date: Sun, 27 Oct 2024 14:30:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=94=9F=E6=88=90uuid?= =?UTF-8?q?=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/remove_xray.sh | 4 ---- bin/update_uuid.sh | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) delete mode 100644 bin/remove_xray.sh diff --git a/bin/remove_xray.sh b/bin/remove_xray.sh deleted file mode 100644 index 08c509b..0000000 --- a/bin/remove_xray.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash - -# Remove Xray -bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ remove \ No newline at end of file diff --git a/bin/update_uuid.sh b/bin/update_uuid.sh index 2cea527..2bf73b5 100644 --- a/bin/update_uuid.sh +++ b/bin/update_uuid.sh @@ -4,7 +4,7 @@ script_dir=$(cd "$(dirname "$0")"; pwd) # 脚本文件绝对路径 config_dir="$script_dir/../conf" # 生成 UUID -uuid=$(xray uuid) +uuid=$(docker run --rm teddysun/xray:latest xray uuid) # 使用 jq 修改 JSON 文件 jq ".inbounds[0].settings.clients[0].id=\"$uuid\"" $config_dir/config.json > $config_dir/config.json_tmp @@ -13,4 +13,4 @@ jq ".inbounds[0].settings.clients[0].id=\"$uuid\"" $config_dir/config.json > $co mv $config_dir/config.json_tmp $config_dir/config.json # 验证结果 -echo "设置UUID成功." \ No newline at end of file +echo "设置UUID成功."