fix: set -e skips trap!
This commit is contained in:
parent
e3bd62e6bd
commit
af1549c142
1 changed files with 2 additions and 6 deletions
|
@ -37,8 +37,6 @@ for SIG in 1 2 3 6 9 14 15; do
|
||||||
trap "ensure ${SIG}" ${SIG}
|
trap "ensure ${SIG}" ${SIG}
|
||||||
done
|
done
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
# Renew certificates, trust in certbot's algorithms
|
# Renew certificates, trust in certbot's algorithms
|
||||||
renew)
|
renew)
|
||||||
|
@ -57,9 +55,7 @@ case $1 in
|
||||||
--agree-tos \
|
--agree-tos \
|
||||||
-d "${SUTTY}" \
|
-d "${SUTTY}" \
|
||||||
-d "*.${SUTTY}" \
|
-d "*.${SUTTY}" \
|
||||||
-d "*.testing.${SUTTY}"
|
-d "*.testing.${SUTTY}" && touch "${updated}"
|
||||||
|
|
||||||
touch "${updated}"
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
prune)
|
prune)
|
||||||
|
@ -110,7 +106,7 @@ case $1 in
|
||||||
--webroot \
|
--webroot \
|
||||||
--agree-tos \
|
--agree-tos \
|
||||||
--webroot-path /var/lib/letsencrypt \
|
--webroot-path /var/lib/letsencrypt \
|
||||||
-d "${domain}"
|
-d "${domain}" || break
|
||||||
touch "${updated}"
|
touch "${updated}"
|
||||||
done
|
done
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in a new issue