Skip to content

Instantly share code, notes, and snippets.

@rahul286
Created August 15, 2012 16:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rahul286/3361394 to your computer and use it in GitHub Desktop.
Save rahul286/3361394 to your computer and use it in GitHub Desktop.
Gitolite install for Gitlabhq
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