unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: guix-patches--- via <guix-patches@gnu.org>
To: 58024@debbugs.gnu.org
Subject: [bug#58024] [PATCH] gnu: services: certbot: Add missing activation directory
Date: Fri, 23 Sep 2022 12:27:03 +0200	[thread overview]
Message-ID: <87pmfm2xoo.fsf@disroot.org> (raw)

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




             reply	other threads:[~2022-09-23 13:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-23 10:27 guix-patches--- via [this message]
2022-09-29 20:56 ` bug#58024: [PATCH] gnu: services: certbot: Add missing activation directory Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pmfm2xoo.fsf@disroot.org \
    --to=guix-patches@gnu.org \
    --cc=58024@debbugs.gnu.org \
    --cc=maya.tomasek@disroot.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).