Browse Source

add _saveaccountconf

pull/326/head
Philippe Kueck 8 years ago
parent
commit
f16c30baaf
No known key found for this signature in database GPG Key ID: E10E57D62DB57A3B
  1. 3
      dnsapi/dns_nsupdate.sh

3
dnsapi/dns_nsupdate.sh

@ -9,6 +9,9 @@ dns_nsupdate_add() {
txtvalue=$2 txtvalue=$2
_checkKeyFile || return 1 _checkKeyFile || return 1
NSUPDATE_SERVER=${NSUPDATE_SERVER:-localhost} 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) tmp=$(mktemp --tmpdir acme_nsupdate.XXXXXX)
cat > ${tmp} <<EOF cat > ${tmp} <<EOF
server ${NSUPDATE_SERVER} server ${NSUPDATE_SERVER}

Loading…
Cancel
Save