From b92b5d7651209ec5849c30ae23337887dfbb7808 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Tue, 19 Dec 2023 16:56:26 +0000 Subject: tissue: Explain permissions set on the tissue state directory. * guix/forge/tissue.scm (tissue-activation): Explains permissions set on the tissue state directory. --- guix/forge/tissue.scm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'guix') diff --git a/guix/forge/tissue.scm b/guix/forge/tissue.scm index f008686..4ece204 100644 --- a/guix/forge/tissue.scm +++ b/guix/forge/tissue.scm @@ -158,11 +158,13 @@ #~(let ((socket-directory #$(dirname (forge-unix-socket-path socket)))) (mkdir-p socket-directory) (chown socket-directory (passwd:uid user) (passwd:gid user)))) - ;; Create state directory. + ;; Create state directory. The state directory is owned by + ;; the tissue user. (mkdir-p #$state-directory) (chown #$state-directory (passwd:uid user) (passwd:gid user))) ;; Create host directories if they don't exist, and set - ;; permissions. + ;; permissions. Each host directory may be owned by its own + ;; user. (for-each (match-lambda ((hostname username) (let ((host-directory (string-append #$state-directory "/" hostname)) -- cgit v1.2.3