summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2021-09-04 15:43:36 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2021-09-04 16:21:31 +0000
commit15b6a6910fcd4602a17c0e438c85f579657e3f20 (patch)
tree3c5fc5df62759f44536a55c105f19a9e58e48687
parentAdding knot tools. (diff)
downloadservice-tools-15b6a6910fcd4602a17c0e438c85f579657e3f20.tar.xz
service-tools-15b6a6910fcd4602a17c0e438c85f579657e3f20.zip
Reading configuration files in dehydrated-nsupdate for future tsig support.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to '')
-rw-r--r--dehydrated/Makefile2
-rwxr-xr-xdehydrated/bin/dehydrated-nsupdate9
2 files changed, 10 insertions, 1 deletions
diff --git a/dehydrated/Makefile b/dehydrated/Makefile
index 0c9da96..5a6239d 100644
--- a/dehydrated/Makefile
+++ b/dehydrated/Makefile
@@ -50,7 +50,7 @@ test:
then \
for SCRIPT in $(SCRIPTS); \
do \
- shellcheck -e SC2039 $${SCRIPT}; \
+ shellcheck -e SC1090 -e SC2039 $${SCRIPT}; \
echo -n "."; \
done; \
else \
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)"