added conditional for renewing the second-level domain

master
Daniel Martinez 2020-05-11 15:47:54 -04:00
parent 6a970a37d5
commit 4969b28251
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
set -x set -x
DOMAIN=$(expr match "$CERTBOT_DOMAIN" '.*\.\(.*\..*\)') DOMAIN=$(expr match "$CERTBOT_DOMAIN" '.*\.\(.*\..*\)')
CHALLENGE_DOMAIN="_acme-challenge.${CERTBOT_DOMAIN}" CHALLENGE_DOMAIN="_acme-challenge.${CERTBOT_DOMAIN}"
[[ -z ${DOMAIN} ]] && export DOMAIN=${CERTBOT_DOMAIN}
knotc zone-begin ${DOMAIN} knotc zone-begin ${DOMAIN}
knotc zone-set ${DOMAIN} _acme-challenge.${CERTBOT_DOMAIN}. 360 TXT ${CERTBOT_VALIDATION} knotc zone-set ${DOMAIN} _acme-challenge.${CERTBOT_DOMAIN}. 360 TXT ${CERTBOT_VALIDATION}
knotc zone-commit ${DOMAIN} knotc zone-commit ${DOMAIN}

View File

@ -2,7 +2,7 @@
DOMAIN=$(expr match "$CERTBOT_DOMAIN" '.*\.\(.*\..*\)') DOMAIN=$(expr match "$CERTBOT_DOMAIN" '.*\.\(.*\..*\)')
CHALLENGE_DOMAIN="_acme-challenge.${CERTBOT_DOMAIN}" CHALLENGE_DOMAIN="_acme-challenge.${CERTBOT_DOMAIN}"
[[ -z ${DOMAIN} ]] && export DOMAIN=${CERTBOT_DOMAIN}
knotc zone-begin ${DOMAIN} knotc zone-begin ${DOMAIN}
knotc zone-unset ${DOMAIN} _acme-challenge.${CERTBOT_DOMAIN}. TXT knotc zone-unset ${DOMAIN} _acme-challenge.${CERTBOT_DOMAIN}. TXT
knotc zone-commit ${DOMAIN} knotc zone-commit ${DOMAIN}