summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2022-08-06 02:38:41 -0400
committerMalfurious <m@lfurio.us>2022-08-06 02:38:41 -0400
commitea1b0343eac09b1946a71522230944486c74bb5f (patch)
tree726b0a9c35f384dc242c0e3314dcf80193092252
parent60327a5e246fd00deb9bd19a163f4eb7493b1fdc (diff)
downloadsrcnode-ea1b0343eac09b1946a71522230944486c74bb5f.tar.gz
srcnode-ea1b0343eac09b1946a71522230944486c74bb5f.zip
Fix datastore permissions
For compatibility with the front-end docker image, ensure git repositories (and their parent directories) have mode 0755, aka: go+rx. Signed-off-by: Malfurious <m@lfurio.us>
-rw-r--r--conf/.gitolite.rc2
-rw-r--r--docker/Dockerfile.gitolite2
2 files changed, 3 insertions, 1 deletions
diff --git a/conf/.gitolite.rc b/conf/.gitolite.rc
index 13d2633..ea43e06 100644
--- a/conf/.gitolite.rc
+++ b/conf/.gitolite.rc
@@ -18,7 +18,7 @@
# default umask gives you perms of '0700'; see the rc file docs for
# how/why you might change this
- UMASK => 0077,
+ UMASK => 0022,
# look for "git-config" in the documentation
GIT_CONFIG_KEYS => '',
diff --git a/docker/Dockerfile.gitolite b/docker/Dockerfile.gitolite
index 0cccaf1..a1ba275 100644
--- a/docker/Dockerfile.gitolite
+++ b/docker/Dockerfile.gitolite
@@ -14,6 +14,8 @@ RUN pacman -Syu --needed --noconfirm gitolite
# Initialize the gitolite datastore
COPY $pubkey /
RUN runuser -u gitolite -- gitolite setup -pk /$pubkey
+RUN runuser -u gitolite -- chmod 755 /var/lib/gitolite
+RUN runuser -u gitolite -- chmod -R 755 /var/lib/gitolite/repositories
RUN runuser -u gitolite -- ln -sf .gitolite/conf/.gitolite.rc /var/lib/gitolite
RUN runuser -u gitolite -- ln -sf .gitolite/conf/.gitconfig /var/lib/gitolite
VOLUME /var/lib/gitolite