重构代码,统一项目入口为install.sh

This commit is contained in:
Olia Lisa
2026-01-15 13:38:07 +08:00
parent 737378d7ee
commit 2c4a44f924
11 changed files with 55 additions and 73 deletions
-3
View File
@@ -4,7 +4,6 @@ update_xhttp_path(){
local script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" # 脚本文件绝对路径
local config_dir="$script_dir/../conf"
source $script_dir/utils/jq_util.sh
local path_length="$(( RANDOM % 4 + 8 ))"
local xhttp_path="/"$(docker run --rm teddysun/xray:latest xray uuid | tr -d '-' | cut -c 1-$path_length)
@@ -14,5 +13,3 @@ update_xhttp_path(){
echo "设置xhttp_path成功"
}
update_xhttp_path