Created
April 28, 2009 09:17
-
-
Save masaki/103040 to your computer and use it in GitHub Desktop.
gitosis
This file contains hidden or 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
# install | |
cd /tmp | |
wget http://download.fedora.redhat.com/pub/epel/5/SRPMS/gitosis-0.2-6.20080825git.el5.src.rpm | |
rpm2cpio gitosis-0.2-6.20080825git.el5.src.rpm | cpio -i gitosis-0.2.tar.gz | |
tar zxvf gitosis-0.2.tar.gz | |
cd gitosis-0.2 | |
./setup.py build | |
sudo ./steup.py install | |
# post-install | |
sudo getent group git >/dev/null || sudo /usr/sbin/groupadd git | |
sudo getent passwd git >/dev/null || sudo /usr/sbin/useradd -r -g git -d /home/git -s /bin/sh -c "git version control" git | |
sudo mkdir /home/git | |
sudo chown git:git /home/git | |
sudo chmod 700 /home/git | |
# setup | |
cp ~/.ssh/id_rsa.pub masaki.pub | |
sudo -H -u git gitosis-init < masaki.pub | |
sudo chmod +x /home/git/repositories/gitosis-admin.git/hooks/post-update |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment