From ed8756d7c7dcb384bff2bdf3dd09e06b9fbdd39c Mon Sep 17 00:00:00 2001 From: Robbie Mckennie Date: Thu, 12 Jul 2018 20:23:31 +1200 Subject: [PATCH] Update dns_del_nsupdate --- dns_scripts/dns_del_nsupdate | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/dns_scripts/dns_del_nsupdate b/dns_scripts/dns_del_nsupdate index 62291b7..808b21c 100755 --- a/dns_scripts/dns_del_nsupdate +++ b/dns_scripts/dns_del_nsupdate @@ -6,10 +6,4 @@ dnskeyfile="path/to/bla.key" fulldomain="$1" token="$2" -updatefile=$(mktemp) - -printf "update delete _acme-challenge.%s. 300 in TXT \"%s\"\n\n" "${fulldomain}" "${token}" > "${updatefile}" - -nsupdate -k "${dnskeyfile}" -v "${updatefile}" - -rm -f "${updatefile}" +printf "update delete _acme-challenge.%s. 300 in TXT \"%s\"\n\n" "${fulldomain}" "${token}" | nsupdate -k "${dnskeyfile}" -v