summaryrefslogtreecommitdiff
path: root/system-configuration.scm
diff options
context:
space:
mode:
authorMarek Paśnikowski <marek@marekpasnikowski.pl>2024-01-14 09:51:16 +0100
committerMarek Paśnikowski <marek@marekpasnikowski.pl>2024-01-14 09:51:16 +0100
commitd06a965c13a2588ab85376f5a4809b7dabade7d3 (patch)
treea9af44d6e7a571423126ce90eb37135ca0bc9141 /system-configuration.scm
parentbc88cebdf3337b74521e0e5b093d4bb1e5c060a6 (diff)
Set less restrictive umask in gitolite
It is not possible to manually control access rights to gitolite repositories with chmod, as each interaction with the git server progressively erases the reading rights for the world. Set a world reading umask in order to allow cgit to see all the git data in repositories.
Diffstat (limited to 'system-configuration.scm')
-rw-r--r--system-configuration.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/system-configuration.scm b/system-configuration.scm
index a5a3082..4736b7f 100644
--- a/system-configuration.scm
+++ b/system-configuration.scm
@@ -582,7 +582,8 @@
( repository-directory "/var/lib/gitolite/repositories" ) ) )
( service gitolite-service-type
( gitolite-configuration
- ( admin-pubkey gitolite-keys ) ) )
+ ( admin-pubkey gitolite-keys )
+ ( rc-file ( gitolite-rc-file ( umask #o0022 ) ) ) ) )
( service gnome-desktop-service-type )
( service nginx-service-type
( nginx-configuration