Clear modify existing function.
This commit is contained in:
parent
fc0bc6aefc
commit
3eb622adaf
@ -1,11 +1,11 @@
|
|||||||
#!/usr/bin/env sh
|
#!/usr/bin/bash
|
||||||
|
|
||||||
# Author: Boyan Peychev <boyan at cloudns dot net>
|
# Author: Boyan Peychev <boyan at cloudns dot net>
|
||||||
# Repository: https://github.com/ClouDNS/acme.sh/
|
# Repository: https://github.com/ClouDNS/acme.sh/
|
||||||
|
|
||||||
#CLOUDNS_AUTH_ID=XXXXX
|
# CLOUDNS_AUTH_ID=5164
|
||||||
#CLOUDNS_SUB_AUTH_ID=XXXXX
|
#CLOUDNS_SUB_AUTH_ID=XXXXX
|
||||||
#CLOUDNS_AUTH_PASSWORD="YYYYYYYYY"
|
# CLOUDNS_AUTH_PASSWORD="JwB3xzNRgMS6rsDEG"
|
||||||
CLOUDNS_API="https://api.cloudns.net"
|
CLOUDNS_API="https://api.cloudns.net"
|
||||||
DOMAIN_TYPE=
|
DOMAIN_TYPE=
|
||||||
DOMAIN_MASTER=
|
DOMAIN_MASTER=
|
||||||
@ -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…
Reference in New Issue
Block a user