SHARE
TWEET

Install gitolite and cgit

TringaliLuca Jan 10th, 2018 124 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. sudo adduser --system --shell /bin/bash --group --disabled-password --home /var/lib/gitolite gitolite
  3. sudo -u gitolite ssh-keygen
  4. sudo -u gitolite cat /var/lib/gitolite/.ssh/id_rsa.pub
  5. sudo apt-get install gitolite
  6. gl-setup /var/lib/gitolite/.ssh/id_rsa.pub
  7. git clone gitolite@localhost:gitolite-admin.git
  8. cd gitolite-admin
  9. nano conf/gitolite.conf
  10. git commit -a
  11. git push origin master
  12. sudo apt-get install cgit
  13. sudo a2enmod cgi
  14. echo "scan-path=/var/lib/gitolite/repositories" >> /etc/cgitrc
  15. usermod -aG gitolite http
  16. chmod g+rX /var/lib/gitolite
  17. chmod -R g+rX /var/lib/gitolite/repositories
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top