Skip to content

Instantly share code, notes, and snippets.

@imesh
Created January 5, 2014 14:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imesh/8268971 to your computer and use it in GitHub Desktop.
Save imesh/8268971 to your computer and use it in GitHub Desktop.
# Souce: http://oliverdavies.co.uk/blog/2011/10/install-and-configure-subversion-svn-server-ubuntu
set -e
echo "Updating packages..."
sudo apt-get update
echo "Installing subversion..."
sudo apt-get install subversion subversion-tools libapache2-svn
echo "Creating svn directory..."
sudo mkdir /home/svn
sudo mkdir ~/test
sudo svnadmin create /home/svn/test -m 'initial project structure'
cd ~/test

mkdir trunk tags branches
sudo svn import ~/test file:///home/svn/test -m 'Initial project directories'
sudo chown -R www-data:www-data /home/svn
echo "Configuring Apache..."
sudo a2enmod dav_svn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment