From 20dc05124c97bf7b0e9f188d13a94cd98ec03d8a Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Tue, 19 Dec 2023 16:51:31 +0000 Subject: acme: Combine deploy hooks into a file-like object, not a raw G-exp. * guix/forge/acme.scm (acme-service-type): Combine deploy hooks into a file-like object, not a raw G-expression. --- guix/forge/acme.scm | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/guix/forge/acme.scm b/guix/forge/acme.scm index 4142fe2..5ec27bb 100644 --- a/guix/forge/acme.scm +++ b/guix/forge/acme.scm @@ -496,12 +496,14 @@ unspecified. If no element matching @var{pred} is found, return ;; Combine deploy hooks of the ;; two certificates. (deploy-hook - (with-imported-modules '((guix build utils)) - #~(begin - (use-modules (guix build utils)) - - (invoke #$(acme-certificate-deploy-hook certificate)) - (invoke #$(acme-certificate-deploy-hook matched-certificate)))))) + (program-file (string-append (first (acme-certificate-domains certificate)) + "-certificate-deploy-hook") + (with-imported-modules '((guix build utils)) + #~(begin + (use-modules (guix build utils)) + + (invoke #$(acme-certificate-deploy-hook certificate)) + (invoke #$(acme-certificate-deploy-hook matched-certificate))))))) other-certificates)))) (else (cons certificate previous-certificates)))) -- cgit v1.2.3