From a3b7e8992e94cd6ab0392a7cb3ee4c5d84be1ef8 Mon Sep 17 00:00:00 2001 From: Cyprien Nicolas Date: Tue, 13 Dec 2022 11:21:17 +0100 Subject: [PATCH] acmedns: Do not clear credentials from account.conf, and read BASE_URL if available --- dnsapi/dns_acmedns.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dnsapi/dns_acmedns.sh b/dnsapi/dns_acmedns.sh index 057f9742..7d4b4cc8 100755 --- a/dnsapi/dns_acmedns.sh +++ b/dnsapi/dns_acmedns.sh @@ -25,12 +25,11 @@ dns_acmedns_add() { _debug "txtvalue $txtvalue" #for compatiblity from account conf + ACMEDNS_BASE_URL="${ACMEDNS_BASE_URL:-$(_readaccountconf_mutable ACMEDNS_BASE_URL)}" ACMEDNS_USERNAME="${ACMEDNS_USERNAME:-$(_readaccountconf_mutable ACMEDNS_USERNAME)}" - _clearaccountconf_mutable ACMEDNS_USERNAME ACMEDNS_PASSWORD="${ACMEDNS_PASSWORD:-$(_readaccountconf_mutable ACMEDNS_PASSWORD)}" - _clearaccountconf_mutable ACMEDNS_PASSWORD ACMEDNS_SUBDOMAIN="${ACMEDNS_SUBDOMAIN:-$(_readaccountconf_mutable ACMEDNS_SUBDOMAIN)}" - _clearaccountconf_mutable ACMEDNS_SUBDOMAIN + _clearaccountconf_mutable ACMEDNS_UPDATE_URL ACMEDNS_BASE_URL="${ACMEDNS_BASE_URL:-$(_readdomainconf ACMEDNS_BASE_URL)}" ACMEDNS_USERNAME="${ACMEDNS_USERNAME:-$(_readdomainconf ACMEDNS_USERNAME)}"