diff --git a/bin/update_domain.sh b/bin/update_domain.sh index 9c12f61..b3153c8 100644 --- a/bin/update_domain.sh +++ b/bin/update_domain.sh @@ -4,7 +4,11 @@ update_domain(){ local script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" # 脚本文件夹绝对路径 source "$script_dir/utils/jq_util.sh" + source "$script_dir/utils/base.sh" local config_file="$script_dir/../config/config.json" + + # 检查jq是否安装 + check_jq # 获取旧的domain local old_domain=$(jq -r ".inbounds[0].tls.server_name" "$config_file")