Merge branch 'master' of https://code.keybored.co/keybored-co/certbot_knot_hooks
commit
61b25aa5e4
|
@ -1,5 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
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}
|
[[ -z ${DOMAIN} ]] && export DOMAIN=${CERTBOT_DOMAIN}
|
||||||
|
@ -9,4 +8,4 @@ knotc zone-commit ${DOMAIN}
|
||||||
|
|
||||||
echo "${CERTBOT_VALIDATION}" > /tmp/certbot_validation_txt_${CERTBOT_DOMAIN}.txt
|
echo "${CERTBOT_VALIDATION}" > /tmp/certbot_validation_txt_${CERTBOT_DOMAIN}.txt
|
||||||
|
|
||||||
sleep 25
|
sleep 45
|
||||||
|
|
Loading…
Reference in New Issue