From d14875fec89a403a86fbc2efc7502158b5476ba2 Mon Sep 17 00:00:00 2001 From: Gerardo Date: Sun, 19 Apr 2020 19:01:36 +0200 Subject: [PATCH] Travis 9 --- dnsapi/dns_aruba.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/dnsapi/dns_aruba.sh b/dnsapi/dns_aruba.sh index 8ba378c6..05bee483 100644 --- a/dnsapi/dns_aruba.sh +++ b/dnsapi/dns_aruba.sh @@ -105,12 +105,14 @@ _initAuth() { dns_aruba_add() { fulldomain=$1 txtvalue=$2 - + + _debug _domain "$_domain" + _sub_domain="_acme-challenge" + if ! _initAuth; then return 1 fi - _debug _domain "$_domain" - _sub_domain="_acme-challenge" + _debug "Check if _acme-challenge record exists in " "$_domain" if ! _extract_record_id "$_sub_domain.$_domain."; then _method="POST" @@ -136,7 +138,7 @@ dns_aruba_add() { #fulldomain dns_aruba_rm() { - fulldomain=$1 + #fulldomain=$1 txtvalue=$2 if ! _initAuth; then