contrib/certbot: set -eu in renewal hook
That way the script fails if the reload fails.
This commit is contained in:
parent
2216dd91a0
commit
3e1efea6e5
@ -25,11 +25,11 @@ like so:
|
|||||||
`/etc/letsencrypt/renewal-hooks/post/soju.sh` and add a command to reload
|
`/etc/letsencrypt/renewal-hooks/post/soju.sh` and add a command to reload
|
||||||
soju, for instance:
|
soju, for instance:
|
||||||
|
|
||||||
#!/bin/sh
|
#!/bin/sh -eu
|
||||||
systemctl reload soju
|
systemctl reload soju
|
||||||
|
|
||||||
Then mark the script as executable:
|
Then mark the script as executable:
|
||||||
|
|
||||||
sudo chmod 755 /etc/letsencrypt/renewal-hooks/post/soju.sh
|
chmod 755 /etc/letsencrypt/renewal-hooks/post/soju.sh
|
||||||
|
|
||||||
[Certbot]: https://certbot.eff.org/
|
[Certbot]: https://certbot.eff.org/
|
||||||
|
Loading…
Reference in New Issue
Block a user