From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id KKjHKwSuLWPHiQAAbAwnHQ (envelope-from ) for ; Fri, 23 Sep 2022 15:00:52 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id kFrlKgSuLWMzzAAAG6o9tA (envelope-from ) for ; Fri, 23 Sep 2022 15:00:52 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 509A83CB06 for ; Fri, 23 Sep 2022 15:00:51 +0200 (CEST) Received: from localhost ([::1]:60156 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1obiIS-0001SS-DB for larch@yhetil.org; Fri, 23 Sep 2022 09:00:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35956) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1obiGl-0000Uj-OY for guix-patches@gnu.org; Fri, 23 Sep 2022 08:59:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:40584) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1obiGl-0005EQ-By for guix-patches@gnu.org; Fri, 23 Sep 2022 08:59:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1obiGk-00055H-UB for guix-patches@gnu.org; Fri, 23 Sep 2022 08:59:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58024] [PATCH] gnu: services: certbot: Add missing activation directory Resent-From: =?UTF-8?Q?M=C3=A1ja_?= =?UTF-8?Q?Tom=C3=A1=C5=A1ek?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 23 Sep 2022 12:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 58024 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 58024@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166393794119526 (code B ref -1); Fri, 23 Sep 2022 12:59:02 +0000 Received: (at submit) by debbugs.gnu.org; 23 Sep 2022 12:59:01 +0000 Received: from localhost ([127.0.0.1]:39656 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1obiGh-00054q-Nx for submit@debbugs.gnu.org; Fri, 23 Sep 2022 08:59:00 -0400 Received: from lists.gnu.org ([209.51.188.17]:58528) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1obfts-0007Up-6x for submit@debbugs.gnu.org; Fri, 23 Sep 2022 06:27:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57966) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1obftq-0005Ra-Ke for guix-patches@gnu.org; Fri, 23 Sep 2022 06:27:14 -0400 Received: from knopi.disroot.org ([178.21.23.139]:56304) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1obfto-000862-Kl for guix-patches@gnu.org; Fri, 23 Sep 2022 06:27:14 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 41B884A148 for ; Fri, 23 Sep 2022 12:27:08 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4GMzSOnbsPtV for ; Fri, 23 Sep 2022 12:27:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1663928827; bh=OA9DrIK+QcvHifr3DA8gVsHXLpurlrnigK6Y/kco2g0=; h=From:To:Subject:Date; b=PWxJ5VP0aEPP6UyMqt7TAHxEA1Ay5J5vQV7OPdchGiv7MBUeVrO6Bw9UVWhYmSNIH 8/1CQ55nI3yT4uWiHfsBMlU9PdzDboYH1NNSjqNxI+0AgDSj3DhAKi3XmY2mcp+x8S 2QPWID6VM52aabuK31BSwYfeK9xHM8RC3YBUspxqPVjZ/ntEjOXUymVBkLZ9W7nIbB IQqBWwU7zL/kiZmOXFr/LNeFADhndjaOLKwssPtGyHaHy6UrJYO8FTHSzJ9KF3fUc5 fh7GhNbb7HBsavUvfoRhzHoWKHjmxjR2Zsv7Xpbf9rFpCUKuxovjQ7n+D5StAFa/q9 AT8sxAmoQgZ9A== Date: Fri, 23 Sep 2022 12:27:03 +0200 Message-ID: <87pmfm2xoo.fsf@disroot.org> Mime-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=178.21.23.139; envelope-from=maya.tomasek@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 23 Sep 2022 08:58:58 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: =?UTF-8?Q?M=C3=A1ja_?= =?UTF-8?Q?Tom=C3=A1=C5=A1ek?= X-ACL-Warn: , =?utf-8?q?M=C3=A1ja_Tom=C3=A1=C5=A1ek_via_Guix-patches?= From: guix-patches--- via X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1663938052; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=9aHrHXucHJTcHXkjAlPVn5WBpW7Kg1Gf3w9HcSGbFH4=; b=dCt38ZTwaZRpCquVdx8plppux8oIBxo9GH5qoOI5fEeuqxwoLx3SLBEw8foKMG3mNHlhUf wO4bTGLhcEqRo14pFngudp6n6YvoQhKOYj4xR8yITwZ2MUcwFBF1xhdkxdZAa9oVuaRkbW gpM3jgmhkbMOljcyYs33BqM/OsGgjRCtlHuPdrXfno9MeVRseRjGDcDqNPm+QLHLm/iMFs vCGF+XeCv1rXspWY9h+VV8/TteSlP9g35tU2EosddWvytT6eOMgjFw6bkuOejyx5O6GUnB i93SZbNIRF7SkoL8IoRc32g9I/shgis6EH/vN6w36oSa1VR+SraUIwXVhftCxA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1663938052; a=rsa-sha256; cv=none; b=hMM7MJUX3yEnmm0HPDTw3uFc0OnNb5axDnUN8BTHeApZ8Fxt1Wr7MNmC+r5f6ADgLbZc1g xp7POvRmUmZgd940lpDa9Ri3Lzswo7EKaqhHY2GVC5ETphVKdLBT1tvtw/Ste0eFQMYaeA 1FssJK4QBOs6Ig6TfvInBz+2MYDmHyJY4u5ejmiUjs2nMB+ToYHIgB4+Gq/UKctJBc92GO aiV/O9Uu0+6N7bxVeUmw3sCTqoU341ORhOAQDH7p0ISoj0WwjYwwG5MCKm0YfsMOttyZNN tYVtI0sbl3PC3UPT/WWZafcLyGMZIjFIZz0nwbvpukNkultLAk4rcRg/RsJ18A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=PWxJ5VP0; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.55 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=PWxJ5VP0; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 509A83CB06 X-Spam-Score: -1.55 X-Migadu-Scanner: scn1.migadu.com X-TUID: mCcA5fUICoEG 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