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