i just want to throw up 2 scripts, 1 to deploy a SVN repository quickly
easily and effectively, and 1 to configure and control the users /
server operations post repo deployment. /usr/bin/snvdploy & /usr/bin/svnctl
/usr/bin/snvdploy
/code/
#!/bin/bash
if [ ! -d "/home/svn" ]; then
mkdir /home/svn
fi
echo "name your SVN repo"
read DIRNAME
mkdir /home/svn/$DIRNAME
chgrp svn /home/svn/$DIRNAME
chmod g+w /home/svn/$DIRNAME
chmod g+s /home/svn/$DIRNAME
umask 002
svnadmin create /home/svn/$DIRNAME
umask 022
cd /home/svn/$DIRNAME/conf
echo 'dont forget to run svnctl'
/-code/
/usr/bin/svnctl
/code/
#!/bin/bash
echo 'what SVN server do you wish to configure? (cAsE sensitive)'
ls /home/svn
read DIRNAME
nano /home/svn/$DIRNAME/conf/svnserve.conf
nano /home/svn/$DIRNAME/conf/passwd
/-code/
Received on 2012-11-13 06:52:44 CET