added conditional for renewing the second-level domain
This commit is contained in:
@@ -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,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}
|
||||
|
Reference in New Issue
Block a user