summaryrefslogtreecommitdiffstats
path: root/docker/gitolite_init.sh
diff options
context:
space:
mode:
Diffstat (limited to 'docker/gitolite_init.sh')
-rwxr-xr-xdocker/gitolite_init.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/docker/gitolite_init.sh b/docker/gitolite_init.sh
new file mode 100755
index 0000000..bd70222
--- /dev/null
+++ b/docker/gitolite_init.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+gitolite setup -pk "$1"
+chmod 755 /var/lib/gitolite
+chmod -R 755 /var/lib/gitolite/repositories
+ln -sf .gitolite/conf/.gitolite.rc /var/lib/gitolite
+ln -sf .gitolite/conf/.gitconfig /var/lib/gitolite