[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/07: services: certbot: Create "live" directory during activation.
From: |
guix-commits |
Subject: |
05/07: services: certbot: Create "live" directory during activation. |
Date: |
Thu, 29 Sep 2022 17:11:01 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 1bf18818c66fbdd329211e18c85ccd310fa74890
Author: Mája Tomášek <maya.tomasek@disroot.org>
AuthorDate: Fri Sep 23 12:27:03 2022 +0200
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>
---
gnu/services/certbot.scm | 2 ++
1 file changed, 2 insertions(+)
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)))))))
- branch master updated (e6777cfa5e -> 4244f5e9a7), guix-commits, 2022/09/29
- 04/07: gnu: Add lite-xl., guix-commits, 2022/09/29
- 01/07: services: shepherd: Leave the finalization thread in peace., guix-commits, 2022/09/29
- 03/07: import: print: Quasiquote properties, guix-commits, 2022/09/29
- 05/07: services: certbot: Create "live" directory during activation.,
guix-commits <=
- 07/07: news: Add entry for '--with-source'., guix-commits, 2022/09/29
- 06/07: transformations: '--with-source' now operates in depth., guix-commits, 2022/09/29
- 02/07: import/utils: alist->package: Include properties., guix-commits, 2022/09/29