From c927f66f3f74e4c504df803dc4e55a62afb2f8f8 Mon Sep 17 00:00:00 2001 From: f Date: Sat, 28 Dec 2024 17:39:58 -0300 Subject: [PATCH] fix: gross error --- certbotd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/certbotd.sh b/certbotd.sh index 2ffac70..533847c 100755 --- a/certbotd.sh +++ b/certbotd.sh @@ -104,7 +104,7 @@ case $1 in if test -s "${cert}"; then domain="`certtool -i < "${cert}" | grep Subject: | cut -d = -f 2 | tr -d " "`" - if grep -q "^${subject}$" "${domains}"; then + if grep -q "^${domain}$" "${domains}"; then echo "ok - ${domain} certificate correctly set" else not_ok "${domain} certificate is not needed anymore, removing"