From f6beefdeacb8f1e67844142d73fc3e2de38db254 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Thu, 15 Sep 2022 20:04:55 +0530 Subject: tissue: Set ownership of state directory recursively. * guix/forge/tissue.scm (tissue-activation): Set ownership of state directory recursively. --- guix/forge/tissue.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/guix/forge/tissue.scm b/guix/forge/tissue.scm index ab86a11..81771c9 100644 --- a/guix/forge/tissue.scm +++ b/guix/forge/tissue.scm @@ -221,7 +221,9 @@ available both as a command-line program and as a web server.") (chown socket-directory (passwd:uid user) (passwd:gid user)))) ;; Create state directory. (mkdir-p #$state-directory) - (chown #$state-directory (passwd:uid user) (passwd:gid user))) + (for-each (lambda (file) + (chown file (passwd:uid user) (passwd:gid user))) + (find-files #$state-directory #:directories? #t))) ;; Create host directories if they don't exist, and set ;; permissions. (for-each (match-lambda -- cgit v1.2.3