Created
January 18, 2011 23:02
-
-
Save vongrippen/785337 to your computer and use it in GitHub Desktop.
Public Dreamhost Gitosis Setup
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
mkdir -p $HOME/lib/python2.5/site-packages; export PYTHONPATH=$HOME/lib/python2.5/site-packages | |
mkdir ~/src; cd ~/src | |
git clone git://eagain.net/gitosis.git | |
cd gitosis | |
python setup.py install --prefix=$HOME | |
echo "export PYTHONPATH=$HOME/lib/python2.5/site-packages/" >> .bashrc | |
echo "export PYTHONPATH=$HOME/lib/python2.5/site-packages/" >> .bash_profile | |
echo "export PATH=$HOME/bin:$PATH" >> .bashrc | |
echo "export PATH=$HOME/bin:$PATH" >> .bash_profile | |
if [ ! -e ~/.ssh/id_rsa.pub ] | |
then | |
mkdir -p ~/.ssh | |
ssh-keygen -N "" -q -f ~/.ssh/id_rsa | |
fi | |
. ~/.bash_profile; gitosis-init < ~/.ssh/id_rsa.pub | |
chmod 750 $HOME/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