aboutsummaryrefslogtreecommitdiffstats
path: root/gitolite-cgit/entrypoint.sh
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2021-06-02 20:48:38 -0500
committerJesús <heckyel@hyperbola.info>2021-06-02 20:48:38 -0500
commitf58b9b5fffb35bea4e3ce14df57776e18adccfcb (patch)
tree04cd7d576d6a4382134456bb8fb9f25ff966f137 /gitolite-cgit/entrypoint.sh
parentd5fea7e6c3b51e31e1c6b784d52d957a6b20f3e5 (diff)
downloadgitolite-cgit-docker-f58b9b5fffb35bea4e3ce14df57776e18adccfcb.tar.lz
gitolite-cgit-docker-f58b9b5fffb35bea4e3ce14df57776e18adccfcb.tar.xz
gitolite-cgit-docker-f58b9b5fffb35bea4e3ce14df57776e18adccfcb.zip
Fix permissions gitolite
Diffstat (limited to 'gitolite-cgit/entrypoint.sh')
-rwxr-xr-xgitolite-cgit/entrypoint.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/gitolite-cgit/entrypoint.sh b/gitolite-cgit/entrypoint.sh
index b69776e..eaad011 100755
--- a/gitolite-cgit/entrypoint.sh
+++ b/gitolite-cgit/entrypoint.sh
@@ -239,6 +239,10 @@ fi
spawn-fcgi -s /run/fcgiwrap/fcgiwrap.socket -f /usr/bin/fcgiwrap
chmod 660 /run/fcgiwrap/fcgiwrap.socket
+# fix permissions gitolite
+chown git:git /var/lib/git/.gitolite.rc
+chmod 640 /var/lib/git/.gitolite.rc
+
# Start git-daemon
git daemon --detach --reuseaddr --base-path=/var/lib/git/repositories /var/lib/git/repositories