aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMunyoki Kilyungi2024-05-14 20:05:25 +0300
committerMunyoki Kilyungi2024-05-14 21:22:04 +0300
commitd0ab755a0d6bf9bfb772cb6c1e4c1a38de50a0b7 (patch)
tree378512641750b1a861a5c53abb5362b4136aa209
parent1d4a7979cf915318a8a6d325465dadaa8ccef3f2 (diff)
downloadgn-machines-d0ab755a0d6bf9bfb772cb6c1e4c1a38de50a0b7.tar.gz
services: genenetwork: Set llm-db owner to gunicorn-genenetwork3.
-rw-r--r--genenetwork/services/genenetwork.scm5
1 files changed, 4 insertions, 1 deletions
diff --git a/genenetwork/services/genenetwork.scm b/genenetwork/services/genenetwork.scm
index 70b5d5c..e28a87f 100644
--- a/genenetwork/services/genenetwork.scm
+++ b/genenetwork/services/genenetwork.scm
@@ -137,7 +137,7 @@
(define (genenetwork-activation config)
(match-record config <genenetwork-configuration>
- (gn2-secrets gn3-secrets gn-auth-secrets auth-db)
+ (gn2-secrets gn3-secrets gn-auth-secrets auth-db llm-db)
(with-imported-modules '((guix build utils))
#~(begin
(use-modules (guix build utils))
@@ -156,6 +156,9 @@
(chown #$gn3-secrets
(passwd:uid (getpw "gunicorn-genenetwork3"))
(passwd:gid (getpw "gunicorn-genenetwork3")))
+ (chown #$llm-db
+ (passwd:uid (getpw "gunicorn-genenetwork3"))
+ (passwd:gid (getpw "gunicorn-genenetwork3")))
;; Set owner-only permissions on secrets files.
(for-each (lambda (file)
(chmod file #o600))