mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-05-10 09:22:47 +00:00
Remove cloud record by cloud-master
This commit is contained in:
parent
fc0bc6aefc
commit
731b34a015
@ -172,11 +172,6 @@ _dns_cloudns_get_zone_name() {
|
|||||||
_dns_cloudns_http_api_call "dns/get-zone-info.json" "domain-name=$zoneForCheck"
|
_dns_cloudns_http_api_call "dns/get-zone-info.json" "domain-name=$zoneForCheck"
|
||||||
|
|
||||||
if ! _contains "$response" "\"status\":\"Failed\""; then
|
if ! _contains "$response" "\"status\":\"Failed\""; then
|
||||||
DOMAIN_TYPE=$(echo "$response" | tr ',' "\n" | grep -E '^"type"' | sed -re 's/^\"type\"\:\"([a-z]+)\"$/\1/g')
|
|
||||||
if _contains "$DOMAIN_TYPE" "cloud"; then
|
|
||||||
DOMAIN_MASTER=$(echo "$response" | tr ',' "\n" | grep -E '^"cloud-master"' | sed -re 's/^\"cloud-master\"\:\"([a-zA-Z0-9][a-zA-Z0-9-]{1,61}[a-zA-Z0-9]\.[a-zA-Z]{2,}+)\"}$/\1/g'
|
|
||||||
)
|
|
||||||
fi
|
|
||||||
echo "$zoneForCheck"
|
echo "$zoneForCheck"
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user