From 15b6a6910fcd4602a17c0e438c85f579657e3f20 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 4 Sep 2021 17:43:36 +0200 Subject: Reading configuration files in dehydrated-nsupdate for future tsig support. Signed-off-by: Daniel Baumann --- dehydrated/bin/dehydrated-nsupdate | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'dehydrated/bin') diff --git a/dehydrated/bin/dehydrated-nsupdate b/dehydrated/bin/dehydrated-nsupdate index f901d2e..4894f16 100755 --- a/dehydrated/bin/dehydrated-nsupdate +++ b/dehydrated/bin/dehydrated-nsupdate @@ -50,6 +50,15 @@ else exit 1 fi +# config +for FILE in /etc/default/dehydrated-nsupdate /etc/default/dehydrated-nsupdate.d/* +do + if [ -e "${FILE}" ] + then + . "${FILE}" + fi +done + # find txt record to update CNAME="$(${DIG} "_acme-challenge.${DOMAIN}" 2>&1 | awk '/CNAME/ { print $5 }' | tail -n1)" -- cgit v1.2.3