summaryrefslogtreecommitdiffstats
path: root/docker/Dockerfile.gitolite
diff options
context:
space:
mode:
Diffstat (limited to 'docker/Dockerfile.gitolite')
-rw-r--r--docker/Dockerfile.gitolite2
1 files changed, 2 insertions, 0 deletions
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