From c2eeb30f59672a09e4d07d5d22e08576834476cd Mon Sep 17 00:00:00 2001 From: Mark Tearle <mtearle@ucc.asn.au> Date: Sun, 27 Oct 2024 00:54:50 +0800 Subject: [PATCH] Handle DNS config at apex of domain --- scripts/certbot-hook-quovadis.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/certbot-hook-quovadis.sh b/scripts/certbot-hook-quovadis.sh index e462ed3..b385bad 100755 --- a/scripts/certbot-hook-quovadis.sh +++ b/scripts/certbot-hook-quovadis.sh @@ -47,6 +47,10 @@ fi # Strip only the top domain to get the zone id DOMAIN=$(expr match "$CERTBOT_DOMAIN" '\(.*\)\.ucc\..*') +if [ -z "${DOMAIN}" ]; then + DOMAIN="apex" +fi + BASE_API="${BASE_API:-https://quovadis.ucc.asn.au/quovadis}" # Create TXT record -- GitLab