fix bug
This commit is contained in:
parent
80e3e3f1a6
commit
6ee019aeca
@ -25,7 +25,7 @@ update_domain(){
|
||||
# 是否存在acme域名, 存在则修改
|
||||
local acme_exists=$(jq -r 'has("inbounds") and (.inbounds[0] | has("tls")) and (.inbounds[0].tls | has("acme"))' "$config_file")
|
||||
if [[ "$acme_exists" == "true" ]]; then
|
||||
modify_json_file "$config_file" ".inbounds[0].tls.acme.domains[0]" "$domain"
|
||||
modify_json_file "$config_file" ".inbounds[0].tls.acme.domain[0]" "$domain"
|
||||
fi
|
||||
|
||||
echo "修改域名成功"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user