diff --git a/dnsapi/dns_knot.sh b/dnsapi/dns_knot.sh deleted file mode 100644 index 094a6981..00000000 --- a/dnsapi/dns_knot.sh +++ /dev/null @@ -1,95 +0,0 @@ -#!/usr/bin/env sh - -######## Public functions ##################### - -#Usage: dns_knot_add _acme-challenge.www.domain.com "XKrxpRBosdIKFzxW_CT3KLZNf6q0HG9i01zxXp5CPBs" -dns_knot_add() { - fulldomain=$1 - txtvalue=$2 - _checkKey || return 1 - [ -n "${KNOT_SERVER}" ] || KNOT_SERVER="localhost" - # save the dns server and key to the account.conf file. - _saveaccountconf KNOT_SERVER "${KNOT_SERVER}" - _saveaccountconf KNOT_KEY "${KNOT_KEY}" - - if ! _get_root "$fulldomain"; then - _err "Domain does not exist." - return 1 - fi - - _info "Adding ${fulldomain}. 60 TXT \"${txtvalue}\"" - - knsupdate -y "${KNOT_KEY}" <