From 64b5f71b58caf186f91fcfd2e30626841558bfca Mon Sep 17 00:00:00 2001 From: f Date: Sat, 22 Apr 2023 15:09:28 -0300 Subject: [PATCH] fix: log when domains are being ignored --- certbotd.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/certbotd.sh b/certbotd.sh index 7cb54cc..b5303d3 100755 --- a/certbotd.sh +++ b/certbotd.sh @@ -94,7 +94,10 @@ case $1 in test -d "/etc/letsencrypt/live/${domain}" && continue # Ignore non local domains - nslookup "${domain}" 8.8.8.8 | grep -qE "^(${SUTTY_ADDRESSES// /|})$" || continue + if ! nslookup "${domain}" 8.8.8.8 | grep -qE "^(${SUTTY_ADDRESSES// /|})$" ; then + echo "${domain} is not configured to any Sutty node or DNS records are still cached, ignoring for now" + continue + fi # Get the certificate for the domain, the webserver will need # access to this directory