Daniel Martinez 2020-05-25 21:50:28 -04:00
commit 61b25aa5e4
1 changed files with 1 additions and 2 deletions

View File

@ -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