mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
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>
This commit is contained in:
parent
6943f22ee6
commit
1bf18818c6
1 changed files with 2 additions and 0 deletions
|
@ -154,6 +154,7 @@ (define (certbot-renewal-jobs config)
|
|||
|
||||
(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 @@ (define (certbot-activation config)
|
|||
(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)))))))
|
||||
|
||||
|
|
Loading…
Reference in a new issue