Created
August 15, 2012 16:27
-
-
Save rahul286/3361394 to your computer and use it in GitHub Desktop.
Gitolite install for Gitlabhq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /home/git | |
#clone gitlite repo | |
sudo -H -u git git clone git://github.com/sitaramc/gitolite /home/git/gitolite | |
sudo -H -u git mkdir /home/git/bin | |
sudo -u git -H sh -c "/home/git/gitolite/install -ln" | |
sudo cp /home/gitlab/.ssh/id_rsa.pub /home/git/gitlab.pub | |
sudo chmod 777 /home/git/gitlab.pub | |
#sudo -u git -H sed -i 's/0077/0007/g' /home/git/share/gitolite/conf/example.gitolite.rc | |
sudo -u git -H sh -c "PATH=/home/git/bin:$PATH; gitolite setup -pk /home/git/gitlab.pub" | |
sudo chmod -R g+rwX /home/git/repositories/ | |
sudo chown -R git:git /home/git/repositories/ | |
sudo -u gitlab -H git clone git@localhost:gitolite-admin.git /tmp/gitolite-admin | |
sudo rm -rf /tmp/gitolite-admin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment