Created
January 5, 2014 14:40
-
-
Save imesh/8268971 to your computer and use it in GitHub Desktop.
This file contains 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
# 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