diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-09-05 05:54:41 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-09-05 07:13:48 +0000 |
commit | e49b20df8176a8eed55825fd16977255192f767c (patch) | |
tree | 01e39008eda52c466ebab6cac42276315814f55a /dehydrated | |
parent | Adding upstream version 20210904. (diff) | |
download | open-infrastructure-service-tools-e49b20df8176a8eed55825fd16977255192f767c.tar.xz open-infrastructure-service-tools-e49b20df8176a8eed55825fd16977255192f767c.zip |
Adding upstream version 20210905.upstream/20210905
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dehydrated')
-rw-r--r-- | dehydrated/TODO | 2 | ||||
-rwxr-xr-x | dehydrated/bin/dehydrated-hook (renamed from dehydrated/bin/dehydrated-hook.d) | 0 | ||||
-rwxr-xr-x | dehydrated/bin/dehydrated-nsupdate | 8 |
3 files changed, 8 insertions, 2 deletions
diff --git a/dehydrated/TODO b/dehydrated/TODO index 0025e8a..bd980cc 100644 --- a/dehydrated/TODO +++ b/dehydrated/TODO @@ -1,4 +1,4 @@ TODO ==== - * add hmac/tsig support + * write manpages diff --git a/dehydrated/bin/dehydrated-hook.d b/dehydrated/bin/dehydrated-hook index 4e7b7ff..4e7b7ff 100755 --- a/dehydrated/bin/dehydrated-hook.d +++ b/dehydrated/bin/dehydrated-hook diff --git a/dehydrated/bin/dehydrated-nsupdate b/dehydrated/bin/dehydrated-nsupdate index ec8cf7f..7b6ea34 100755 --- a/dehydrated/bin/dehydrated-nsupdate +++ b/dehydrated/bin/dehydrated-nsupdate @@ -103,6 +103,11 @@ do fi done +if [ -n "${TSIG_KEYFILE}" ] && [ -e "${TSIG_KEYFILE}" ] +then + NSUPDATE_OPTIONS="-k ${TSIG_KEYFILE}" +fi + NAMESERVERS="$(${DIG} +short NS "${ZONE}")" # update nameservers @@ -110,11 +115,12 @@ for NAMESERVER in ${NAMESERVERS} do echo -n " + sending '${HOOK_ACTION}' for ${TXT_RECORD} to ${NAMESERVER}..." +# shellcheck disable=SC2086 echo "server ${NAMESERVER} zone ${ZONE} ttl 0 update ${HOOK_ACTION} ${TXT_RECORD} 0 TXT ${TOKEN_VALUE} -send" | "${NSUPDATE}" +send" | "${NSUPDATE}" ${NSUPDATE_OPTIONS} echo " done." done |