#!/bin/bash
svnadmin create $1
cp /home/svndata/conf/svnserver.conf /home/svndata/\/conf/svnserve.conf
echo "">>/home/svndata/conf/authz
echo [$1:/]>>/home/svndata/conf/authz
echo "svnadmin = rw">>/home/svndata/conf/authz
rm -rf /home/svndata/tmp
mkdir /home/svndata/tmp
cd /home/svndata/tmp
echo yes|svn co svn://127.0.0.1/\ --username svnadmin --password svnadmin
cd /home/svndata/tmp/\
svn mkdir DAEMON
svn mkdir DEMO
svn mkdir DOCS
svn mkdir WEB
svn mkdir SCRIPT
svn mkdir SCRIPT/trunk
svn mkdir SCRIPT/tags
svn mkdir SCRIPT/branches
svn mkdir WEB/RELEASE
svn mkdir WEB/SOURCE
svn mkdir WEB/SOURCE/branches
svn mkdir WEB/SOURCE/tags
svn mkdir WEB/SOURCE/trunk
svn commit -m svnadmin
vim /home/svndata/conf/authz
原创文章,作者:奋斗,如若转载,请注明出处:https://blog.ytso.com/1168.html