From 91cb32eaeb337ac4ab123a7a07a6e3605321a7b2 Mon Sep 17 00:00:00 2001 From: baerengraben Date: Sat, 18 Nov 2023 13:15:24 +0100 Subject: [PATCH] Update dns_hosttech.sh --- dnsapi/dns_hosttech.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dnsapi/dns_hosttech.sh b/dnsapi/dns_hosttech.sh index bba8cfc8..10902c31 100644 --- a/dnsapi/dns_hosttech.sh +++ b/dnsapi/dns_hosttech.sh @@ -44,13 +44,12 @@ dns_hosttech_add() { _err "Add txt record error." return 1 } - -#fulldomain txtvalue + dns_hosttech_rm() { fulldomain=$1 txtvalue=$2 - Hosttech_Key="${Hosttech_Key:-$(_readaccountconf_mutable Hosttech_Key)}" + if [ -z "$Hosttech_Key" ]; then Hosttech_Key="" _err "You didn't specify a Hosttech api key."