From ffcfa745499c3813d53620c0fabc026020983922 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Wed, 30 Aug 2023 14:05:14 +0200 Subject: letsencrypt hook --- etc/letsencrypt/hook.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 etc/letsencrypt/hook.sh diff --git a/etc/letsencrypt/hook.sh b/etc/letsencrypt/hook.sh new file mode 100755 index 0000000..5355a71 --- /dev/null +++ b/etc/letsencrypt/hook.sh @@ -0,0 +1,13 @@ +#!/bin/bash +CREATE_DOMAIN="certbot.rfc2136.sijanec.eu." +# update delete $CREATE_DOMAIN TXT +echo " +server 127.0.0.1 +update add $CREATE_DOMAIN 1 TXT $CERTBOT_VALIDATION +send +" | tee /dev/stderr | nsupdate -k /etc/bind/keyfile-rfc2136.conf +if [ $CERTBOT_REMAINING_CHALLENGES -eq 0 ] +then + rndc reload + sleep 30 +fi -- cgit v1.2.3