Skip to content

Commit

Permalink
Append instead of replace
Browse files Browse the repository at this point in the history
We need to append TXT records instead of replacing so that wildcard domains/SANs are supported.
  • Loading branch information
robbiet480 authored Jun 24, 2018
1 parent 08faf00 commit 2869019
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ deploy_challenge() {

if [[ -n "$ZONE" ]]; then
echo "Creating challenge record for ${DOMAIN} in zone ${ZONE}"
cli53 rrcreate --replace --wait "${ZONE}" "_acme-challenge.${DOMAIN}. 60 TXT ${TOKEN_VALUE}"
cli53 rrcreate --append --wait "${ZONE}" "_acme-challenge.${DOMAIN}. 60 TXT ${TOKEN_VALUE}"
else
echo "Could not find zone for ${DOMAIN}"
exit 1
Expand Down

0 comments on commit 2869019

Please sign in to comment.