From c75818e3a4a52fd2791e5b91e46ee78fe564e030 Mon Sep 17 00:00:00 2001 From: f Date: Sat, 28 Dec 2024 17:11:32 -0300 Subject: [PATCH] feat: let us know when certbot messes up --- certbotd.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/certbotd.sh b/certbotd.sh index 91de0c4..e8a25bb 100755 --- a/certbotd.sh +++ b/certbotd.sh @@ -192,6 +192,11 @@ case $1 in touch "${updated}" done + + find /etc/letsencrypt/renewal/ -name "*-001.conf" | while read broken_renewal; do + not_ok "${broken_renewal} certbot found an inconsistency on certificates and decided to create a new one" + touch "${failed}" + done esac if test -f "${failed}" ; then