From 1dc59cdfeeaebdbfe58a4cf7c8a72795e61bbc6a Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Fri, 1 Mar 2024 11:28:58 +0000 Subject: Set ownership of secrets files. * genenetwork/services/genenetwork.scm (genenetwork-activation): Set ownership of secrets files. * production-deploy.sh: Mount secrets files read-write. --- genenetwork/services/genenetwork.scm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'genenetwork/services') diff --git a/genenetwork/services/genenetwork.scm b/genenetwork/services/genenetwork.scm index f5d1e01..5a2dda2 100644 --- a/genenetwork/services/genenetwork.scm +++ b/genenetwork/services/genenetwork.scm @@ -100,7 +100,7 @@ (define (genenetwork-activation config) (match-record config - (auth-db) + (gn2-secrets gn3-secrets gn-auth-secrets auth-db) (with-imported-modules '((guix build utils)) #~(begin (use-modules (guix build utils)) @@ -109,8 +109,11 @@ (chown file (passwd:uid (getpw "genenetwork")) (passwd:gid (getpw "genenetwork")))) - (find-files #$(dirname auth-db) - #:directories? #t)))))) + (cons* #$gn2-secrets + #$gn3-secrets + #$gn-auth-secrets + (find-files #$(dirname auth-db) + #:directories? #t))))))) (define (configuration-file-gexp alist) "Return a G-expression that constructs a configuration file of -- cgit v1.2.3