aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2022-10-04 12:35:48 +0800
committerJesús <heckyel@hyperbola.info>2022-10-04 12:35:48 +0800
commitdfd054336c421f77dc08b1e42a19621854c4fce9 (patch)
treeeeeb23842b4919df120d0035ac74dd5c94ec7658
parentb4c1e8004bdc7f7c0f784cdb8826bf4724460bd2 (diff)
downloadgitolite-cgit-docker-dfd054336c421f77dc08b1e42a19621854c4fce9.tar.lz
gitolite-cgit-docker-dfd054336c421f77dc08b1e42a19621854c4fce9.tar.xz
gitolite-cgit-docker-dfd054336c421f77dc08b1e42a19621854c4fce9.zip
Fix Permission denied (publickey,keyboard-interactive)
-rw-r--r--gitolite-cgit/entrypoint.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/gitolite-cgit/entrypoint.sh b/gitolite-cgit/entrypoint.sh
index d4becda..184c50e 100644
--- a/gitolite-cgit/entrypoint.sh
+++ b/gitolite-cgit/entrypoint.sh
@@ -392,6 +392,9 @@ 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
+chown git:git -R /var/lib/git
+chmod 700 /var/lib/git
chown git:git /var/lib/git/.gitolite.rc
chmod 640 /var/lib/git/.gitolite.rc