From e3bd62e6bd9379445e4c7476895631b667fb4411 Mon Sep 17 00:00:00 2001 From: f Date: Fri, 14 Jun 2024 18:00:13 -0300 Subject: [PATCH] fix: exit with the error code --- certbotd.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/certbotd.sh b/certbotd.sh index 8daac84..5f74da6 100755 --- a/certbotd.sh +++ b/certbotd.sh @@ -29,9 +29,11 @@ ensure() { # Remove the lock after synchronization rm -f "${lock}" + # Exit with the error code + exit $1 } -for SIG in TERM QUIT INT HUP; do +for SIG in 1 2 3 6 9 14 15; do trap "ensure ${SIG}" ${SIG} done @@ -113,4 +115,4 @@ case $1 in done esac -ensure +ensure 0