From 67ca76f7f1d4899c3c03e91dffb84ce0a85bca57 Mon Sep 17 00:00:00 2001 From: f Date: Fri, 14 Jun 2024 18:23:45 -0300 Subject: [PATCH] fix: use set -E to trip the traps... but it doesn't work on while loops, so we ensure there too --- certbotd.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/certbotd.sh b/certbotd.sh index f6d1c52..5d4e2f7 100755 --- a/certbotd.sh +++ b/certbotd.sh @@ -37,6 +37,8 @@ for SIG in 1 2 3 6 9 14 15; do trap "ensure ${SIG}" ${SIG} done +set -E + case $1 in # Renew certificates, trust in certbot's algorithms renew) @@ -106,7 +108,8 @@ case $1 in --webroot \ --agree-tos \ --webroot-path /var/lib/letsencrypt \ - -d "${domain}" || break + -d "${domain}" || ensure $? + touch "${updated}" done esac