From 3e1efea6e523eca126c7b7b6aa048237682c6474 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 8 Dec 2023 17:04:17 +0100 Subject: [PATCH] contrib/certbot: set -eu in renewal hook That way the script fails if the reload fails. --- contrib/certbot.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/certbot.md b/contrib/certbot.md index ca0491a..b6fbe63 100644 --- a/contrib/certbot.md +++ b/contrib/certbot.md @@ -25,11 +25,11 @@ like so: `/etc/letsencrypt/renewal-hooks/post/soju.sh` and add a command to reload soju, for instance: - #!/bin/sh + #!/bin/sh -eu systemctl reload soju 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/