SHARE
TWEET

Install Gitolite and Cgit on Ubuntu Server

TringaliLuca Sep 18th, 2018 (edited) 100 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #On Debian: https://pastebin.com/wwgdcQyJ
  2. sudo -s
  3. adduser --system --shell /bin/bash --group --disabled-password --home /var/lib/gitolite gitolite
  4. sudo -u gitolite ssh-keygen
  5.  
  6. apt-get install gitolite3  #leave blank
  7. dpkg-reconfigure gitolite3
  8. usermod -g wwwftp gitolite
  9. usermod -g www-data gitolite
  10.  
  11. ssh gitolite@localhost
  12. cd /var/www/
  13. git clone gitolite@localhost:gitolite-admin.git
  14. cd gitolite-admin
  15.  
  16. ADD USER: echo "$userkey" > keydir/$username.pub
  17. LA PRIMA VOLTA: echo "repo @$usernamerepos\n    RW+     =   $username\n    R     =   @all" >> conf/gitolite.conf
  18. ADD REPO: echo "@$usernamerepos = $reponame" >> conf/gitolite.conf
  19. git commit -am "Users edited"
  20. git push origin master
  21.  
  22. exit
  23. chown -R gitolite:www-data /var/lib/gitolite/repositories
  24. nano /etc/gitolite3/gitolite.rc
  25. UMASK                           =>  0027,
  26. WRITER_CAN_UPDATE_DESC          => 1,
  27. #https://stackoverflow.com/questions/5938652/gitolite-cgit-no-repositories-found
  28.  
  29.  
  30. UTENTE ESTERNO:
  31. git clone gitolite@codice-sorgente.it:fb_page_scrape.git
  32. ADD DESCR: ssh gitolite@codice-sorgente.it desc fb_page_scrape.git "Descrizione"
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
 
Top