unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#58024] [PATCH] gnu: services: certbot: Add missing activation directory
@ 2022-09-23 10:27 guix-patches--- via
  2022-09-29 20:56 ` bug#58024: " Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: guix-patches--- via @ 2022-09-23 10:27 UTC (permalink / raw)
  To: 58024

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 | 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-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)))))))
 
 -- 
 2.37.3




^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#58024: [PATCH] gnu: services: certbot: Add missing activation directory
  2022-09-23 10:27 [bug#58024] [PATCH] gnu: services: certbot: Add missing activation directory guix-patches--- via
@ 2022-09-29 20:56 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2022-09-29 20:56 UTC (permalink / raw)
  To: Mája Tomášek; +Cc: 58024-done

Hi,

Mája Tomášek <maya.tomasek@disroot.org> skribis:

> When trying to run certbot, the mcron command fails, as
>  /etc/letsencrypt/live is missing. This patch Adds it into the certbot
>  activation service.

I adjusted the commit log to follow our conventions and applied it.

Thanks!

Ludo’.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-09-29 20:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-23 10:27 [bug#58024] [PATCH] gnu: services: certbot: Add missing activation directory guix-patches--- via
2022-09-29 20:56 ` bug#58024: " Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).