File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -43,12 +43,17 @@ sudo usermod -a -G gitlab git
43
43
sudo -H -u gitlab ssh-keygen -q -N ' ' -t rsa -f /home/gitlab/.ssh/id_rsa
44
44
45
45
cd /home/git
46
- sudo -H -u git git clone -b gl-v304 git://github.com/gitlabhq/gitolite /home/git/gitolite
46
+ sudo -u git -H mkdir bin
47
+ sudo -u git sh -c ' echo -e "PATH=\$PATH:/home/git/bin\nexport PATH" >> /home/git/.profile'
48
+ sudo -u git sh -c ' gitolite/install -ln /home/git/bin'
47
49
48
- sudo -u git -H sh -c " PATH=/home/git/bin:$PATH ; /home/git/gitolite/src/gl-system-install"
49
50
sudo cp /home/gitlab/.ssh/id_rsa.pub /home/git/gitlab.pub
50
- sudo chmod 777 /home/git/gitlab.pub
51
- sudo -u git -H sh -c " PATH=/home/git/bin:$PATH ; gl-setup -q /home/git/gitlab.pub"
51
+ sudo chmod 0444 /home/git/gitlab.pub
52
+
53
+ sudo -u git -H sh -c " PATH=/home/git/bin:$PATH ; gitolite setup -pk /home/git/gitlab.pub"
54
+
55
+
56
+
52
57
53
58
54
59
sudo chmod -R g+rwX /home/git/repositories/
You can’t perform that action at this time.
0 commit comments