fix: use set -E to trip the traps...
but it doesn't work on while loops, so we ensure there too
This commit is contained in:
parent
af1549c142
commit
67ca76f7f1
1 changed files with 4 additions and 1 deletions
|
@ -37,6 +37,8 @@ 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)
|
||||||
|
@ -106,7 +108,8 @@ case $1 in
|
||||||
--webroot \
|
--webroot \
|
||||||
--agree-tos \
|
--agree-tos \
|
||||||
--webroot-path /var/lib/letsencrypt \
|
--webroot-path /var/lib/letsencrypt \
|
||||||
-d "${domain}" || break
|
-d "${domain}" || ensure $?
|
||||||
|
|
||||||
touch "${updated}"
|
touch "${updated}"
|
||||||
done
|
done
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in a new issue