fix: set -e skips trap!
All checks were successful
ci/woodpecker/push/woodpecker/1 Pipeline was successful
ci/woodpecker/push/woodpecker/2 Pipeline was successful

This commit is contained in:
f 2024-06-14 18:05:11 -03:00
parent e3bd62e6bd
commit af1549c142
No known key found for this signature in database

View file

@ -37,8 +37,6 @@ 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)
@ -57,9 +55,7 @@ case $1 in
--agree-tos \
-d "${SUTTY}" \
-d "*.${SUTTY}" \
-d "*.testing.${SUTTY}"
touch "${updated}"
-d "*.testing.${SUTTY}" && touch "${updated}"
;;
prune)
@ -110,7 +106,7 @@ case $1 in
--webroot \
--agree-tos \
--webroot-path /var/lib/letsencrypt \
-d "${domain}"
-d "${domain}" || break
touch "${updated}"
done
esac