diff options
author | Mája Tomášek <maya.tomasek@disroot.org> | 2022-09-23 12:27:03 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2022-09-29 22:59:48 +0200 |
commit | 1bf18818c66fbdd329211e18c85ccd310fa74890 (patch) | |
tree | 7f5aec4cb461d109cf358a08756d33b360d44aa3 /gnu/services/certbot.scm | |
parent | 6943f22ee6956bc6c8e57e191dbdf6d9dcd5995e (diff) | |
download | guix-1bf18818c66fbdd329211e18c85ccd310fa74890.tar.gz |
services: certbot: Create "live" directory during activation.
When trying to run certbot, the mcron command fails, as /etc/letsencrypt/live is missing. This patch adds it into the certbot activation service. * gnu/services/certbot.scm (certbot-activation): Make /etc/letsencrypt/live. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu/services/certbot.scm')
-rw-r--r-- | gnu/services/certbot.scm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gnu/services/certbot.scm b/gnu/services/certbot.scm index 1c819bef48..7dfdad9874 100644 --- a/gnu/services/certbot.scm +++ b/gnu/services/certbot.scm @@ -154,6 +154,7 @@ (define (certbot-activation config) (let* ((certbot-directory "/var/lib/certbot") + (certbot-cert-directory "/etc/letsencrypt/live") (script (in-vicinity certbot-directory "renew-certificates")) (message (format #f (G_ "~a may need to be run~%") script))) (match config @@ -164,6 +165,7 @@ (use-modules (guix build utils)) (mkdir-p #$webroot) (mkdir-p #$certbot-directory) + (mkdir-p #$certbot-cert-directory) (copy-file #$(certbot-command config) #$script) (display #$message))))))) |