feat: signal failure

This commit is contained in:
f 2024-12-28 17:11:15 -03:00
parent 43ac0ece5b
commit 5b352b230f
No known key found for this signature in database

View file

@ -23,6 +23,7 @@ fi
lock=/tmp/certbot.lck
updated=/tmp/certbot.updated
failed=/tmp/certbot.failed
domains=/tmp/domains
ensure() {
@ -46,6 +47,9 @@ ensure() {
# Remove the lock after synchronization
rm -f "${lock}"
# Remove the failure status
rm -f "${failed}"
# Exit with the error code
exit $1
}
@ -190,4 +194,8 @@ case $1 in
done
esac
ensure 0
if test -f "${failed}" ; then
ensure 255
else
ensure 0
fi