Gerardo
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
8 deletions
-
dnsapi/dns_aruba.sh
|
|
@ -106,10 +106,8 @@ _initAuth() { |
|
|
|
dns_aruba_add() { |
|
|
|
fulldomain=$1 |
|
|
|
txtvalue=$2 |
|
|
|
|
|
|
|
#_debug _domain "$_domain" |
|
|
|
#_sub_domain="_acme-challenge" |
|
|
|
|
|
|
|
if ! _initAuth; then |
|
|
|
return 1 |
|
|
|
fi |
|
|
@ -119,7 +117,6 @@ dns_aruba_add() { |
|
|
|
_err "invalid domain" |
|
|
|
return 1 |
|
|
|
fi |
|
|
|
|
|
|
|
_info "Get domain details" |
|
|
|
|
|
|
|
if ! _aruba_rest GET "api/domains/dns/$_domain/details" || _contains "$response" "error" || _contains "$response" "denied"; then |
|
|
@ -194,7 +191,7 @@ _get_root() { |
|
|
|
return 1 |
|
|
|
fi |
|
|
|
_debug "doamin to check: $h" |
|
|
|
if ! _aruba_rest GET "api/domains/dns/$h/details"; then |
|
|
|
if ! _aruba_rest GET "api/domains/dns/$h/details"; then |
|
|
|
return 1 |
|
|
|
fi |
|
|
|
|
|
|
|