#!/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