更新 update_domain.sh 脚本,添加对 base.sh 的引用并检查 jq 是否安装
This commit is contained in:
parent
55b755f783
commit
29dcce5a42
@ -4,7 +4,11 @@
|
|||||||
update_domain(){
|
update_domain(){
|
||||||
local script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" # 脚本文件夹绝对路径
|
local script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" # 脚本文件夹绝对路径
|
||||||
source "$script_dir/utils/jq_util.sh"
|
source "$script_dir/utils/jq_util.sh"
|
||||||
|
source "$script_dir/utils/base.sh"
|
||||||
local config_file="$script_dir/../config/config.json"
|
local config_file="$script_dir/../config/config.json"
|
||||||
|
|
||||||
|
# 检查jq是否安装
|
||||||
|
check_jq
|
||||||
|
|
||||||
# 获取旧的domain
|
# 获取旧的domain
|
||||||
local old_domain=$(jq -r ".inbounds[0].tls.server_name" "$config_file")
|
local old_domain=$(jq -r ".inbounds[0].tls.server_name" "$config_file")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user