#!/bin/shif [ $# -ne 2 ]; then echo $0 svnparentpath svnrepository exit 1 fisvnparentpath=$1 shiftif [ ! -d $svnparentpath ]; then echo $svnparentpath is not a valid folder… exit 2 fiif [ $1 != `basename $1` ]; then echo $1 ambiguous repository name … exit 3 fiif [ -e $svnparentpath/$1 ]; then echo $svnparentpath/$1 already exist… exit 4 fisu www-data -c "mkdir $svnparentpath/$1; svnadmin create $svnparentpath/$1" #mkdir $svnparentpath/$1; svnadmin create $svnparentpath/$1if [ $? != 0 ]; then echo problem during the svncreate phase exit 5 fiexit 0
#!/bin/shif [ $# -ne 3 ]; then echo $0 svnparentpath sourcesvnrepository ciblesvnrepository exit 1 fisvnparentpath=$1 shiftif [ ! -d $svnparentpath ]; then echo $svnparentpath is not a valid folder… exit 2 fiif [ $1 != `basename $1` ]; then echo $1 ambiguous repository name … exit 3 fiif [ $2 != `basename $2` ]; then echo $2 ambiguous repository name … exit 4 fiif [ ! -d $svnparentpath/$1 ]; then echo $svnparentpath/$1 is not a valid folder… exit 5 fiif [ -e $svnparentpath/$2 ]; then echo $svnparentpath/$2 already exist… exit 6 fisu www-data -c "mv $svnparentpath/$1 $svnparentpath/$2"if [ $? != 0 ]; then echo problem during the move phase exit 7 fiexit 0
sudo /XXXXX/tools/CreateSVNRepositoryForLS.sh /XXXX/svn sudo /XXXXX/tools/MoveSVNRepositoryForLS.sh /XXXX/svnI can't find them anywhere. Where can I get them?]]>
<VirtualHost *> ServerName XXXX ErrorLog /XXXX/error_log CustomLog /XXXX/access_log combined ProxyRequests Off <Proxy *> Order Deny,allow Allow from all </Proxy> ProxyPass /ls-svn/ ! ProxyPass / http://XXXX:YYYY/ ProxyPassReverse / http://XXXX:YYYY/ <Location /ls-svn/ > DAV svn SVNParentPath /XXXX/svn AuthzSVNAccessFile /XXXX/svn/XXXX-access.conf Order Deny,allow Allow from all Require valid-user AuthName "svn" AuthType Basic Auth_PG_host localhost Auth_PG_port 5432 Auth_PG_database XXXX Auth_PG_user postgres Auth_PG_pwd rien Auth_PG_pwd_table casusers_ Auth_PG_uid_field username_ Auth_PG_pwd_field passworddigest_ Auth_PG_cache_passwords on Auth_PG_encrypted off </Location> </VirtualHost>
# Subversion configuration subversion.authz.file.path=/XXXX/svn/XXXX-access.conf subversion.repository.base.path=/XXXX/svn subversion.create.repository.cmd=sudo /XXXXX/tools/CreateSVNRepositoryForLS.sh /XXXX/svn subversion.rename.repository.cmd=sudo /XXXXX/tools/MoveSVNRepositoryForLS.sh /XXXX/svn
subversion.authz.file.path : Specify the path to the authz file that your Subversion should use (security mapping) subversion.repository.base.path subversion.create.repository.cmd subversion.rename.repository.cmd