summaryrefslogtreecommitdiff
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
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.
-rw-r--r--izumi.org3
-rw-r--r--system-configuration.scm3
2 files changed, 4 insertions, 2 deletions
diff --git a/izumi.org b/izumi.org
index 0a9f776..187eaf5 100644
--- a/izumi.org
+++ b/izumi.org
@@ -592,7 +592,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
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