generate-certificate-auth-hook.sh 331 B

1234567891011121314151617
  1. #!/bin/bash
  2. . /root/bin/generate-certificate-common.sh
  3. echo "${VERIFICATION_DOMAIN}:"
  4. /root/bin/generate-certificate-cleanup-hook.sh
  5. addRecord "$VERIFICATION_DOMAIN" "$CERTBOT_VALIDATION"
  6. RC="$?"
  7. if [ "$RC" != '0' ]; then
  8. exit $RC
  9. fi
  10. echo "waiting 10 seconds for the TXT-record of $VERIFICATION_DOMAIN to propagate"
  11. sleep 10