[bug#67497,v2,1/4] In documentation, rename %certbot-deploy-hook back to %nginx-deploy-hook..

Message ID e2119afb4420e040d4e9f2d659a0df4ee9ca0c9c.1746026936.git.felix.lechner@lease-up.com
State New
Headers
Series [bug#67497,v2,1/4] In documentation, rename %certbot-deploy-hook back to %nginx-deploy-hook.. |

Commit Message

Felix Lechner April 30, 2025, 3:34 p.m. UTC
  Bruno Victal made that change in commit fec8e513, but a nearby patch will
offer the ability to specify a list of hooks. That makes it possible to name
deploy hooks after the services they restart.

Change-Id: I128f71f2e96159eef8821e21ea03ecf0c1c0a7f4
---
 doc/guix.texi | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)


base-commit: bb8cc412c8fcab613c402e06ae7024d6df5c9010
  

Patch

diff --git a/doc/guix.texi b/doc/guix.texi
index 90d90b2e1eb..b48255a16e0 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -35364,13 +35364,21 @@  Certificate Services
 must be a @code{certbot-configuration} record as in this example:
 
 @lisp
+(define %nginx-deploy-hook
+  (program-file "certbot-nginx-deploy-hook.scm"
+    (with-imported-modules '((gnu services herd))
+      #~(begin
+          (use-modules (gnu services herd))
+          (with-shepherd-action 'nginx ('reload) result result)))))
+
 (service certbot-service-type
          (certbot-configuration
           (email "foo@@example.net")
           (certificates
            (list
             (certificate-configuration
-             (domains '("example.net" "www.example.net")))
+             (domains '("example.net" "www.example.net"))
+             (deploy-hook %nginx-deploy-hook))
             (certificate-configuration
              (domains '("bar.example.net")))))))
 @end lisp