From 2869019894783a6be22d4b76861fe2d82e0a6247 Mon Sep 17 00:00:00 2001 From: Robbie Trencheny Date: Sat, 23 Jun 2018 19:33:30 -0700 Subject: [PATCH] Append instead of replace We need to append TXT records instead of replacing so that wildcard domains/SANs are supported. --- hook.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hook.sh b/hook.sh index 5eb72db..135e518 100755 --- a/hook.sh +++ b/hook.sh @@ -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