SHARE
TWEET

Nuovo utente su gitolite

TringaliLuca Nov 6th, 2018 101 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #/bin/bash
  2. # Luca Tringali - www.codice-sorgente.it
  3. sudo su - gitolite
  4. cd /tmp
  5. git clone gitolite@localhost:gitolite-admin.git
  6. cd gitolite-admin
  7. echo "Digita il nome del nuovo utente:"
  8. read username
  9. echo "Digita o incolla il contenuto della chiave (in una sola riga):"
  10. read userkey
  11. echo "$userkey" > keydir/$username.pub
  12. git add keydir/$username.pub
  13. echo "repo @$usernamerepos\n    RW+     =   $username\n    R     =   @all" >> conf/gitolite.conf
  14. git commit -am "Users edited"
  15. git push origin master
  16. exit
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