added conditional for renewing the second-level domain
parent
6a970a37d5
commit
4969b28251
|
@ -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}
|
||||||
|
|
|
@ -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}
|
||||||
|
|
Loading…
Reference in New Issue