From f16c30baaf256fa02ba723d3d8368c5f5835ac9d Mon Sep 17 00:00:00 2001 From: Philippe Kueck Date: Sun, 23 Oct 2016 17:39:56 +0200 Subject: [PATCH] add _saveaccountconf --- dnsapi/dns_nsupdate.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dnsapi/dns_nsupdate.sh b/dnsapi/dns_nsupdate.sh index 76637de5..12313f65 100755 --- a/dnsapi/dns_nsupdate.sh +++ b/dnsapi/dns_nsupdate.sh @@ -9,6 +9,9 @@ dns_nsupdate_add() { txtvalue=$2 _checkKeyFile || return 1 NSUPDATE_SERVER=${NSUPDATE_SERVER:-localhost} + # save the dns server and key to the account conf file. + _saveaccountconf NSUPDATE_SERVER "${NSUPDATE_SERVER}" + _saveaccountconf NSUPDATE_KEY "${NSUPDATE_KEY}" tmp=$(mktemp --tmpdir acme_nsupdate.XXXXXX) cat > ${tmp} <