summaryrefslogtreecommitdiffstats
path: root/etc/letsencrypt/hook.sh
blob: 5355a718d0106797be2d2c3b8fbb10ff40da1c61 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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