Browse Source

added conditional for renewing the second-level domain

master
Daniel Martinez 1 year ago
parent
commit
4969b28251
  1. 2
      same-server-authenticator-hook.sh
  2. 2
      same-server-cleanup.sh

2
same-server-authenticator-hook.sh

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

2
same-server-cleanup.sh

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