Linux Apache svn
yum install mod_dav_svn subversion httpd
mkdir /var/www/svn
svnadmin create /var/www/svn/puppet
cd /var/www/svn/
chown -R apache.apache puppet
cp puppet/authz ./
htpasswd -c passwd lanxiong
vim authz
[groups]
admin=lanxiong,sawyer
[/]
#[/] 相當於/var/www/svn這個目錄,賦予許可權給用戶組
@admin=rw
httpd subversion.conf
<Location /repos>
DAV svn
SVNParentPath /var/www/svn
AuthType Basic
AuthName "Authorization SVN"
AuthzSVNAccessFile "/var/www/svn/authz"
AuthUserFile "/var/www/svn/passwd"
Require valid-user
</Location>
httpd restart
[root@ps puppet]# svn ci -m "skdkfads"
Sending lanxiong
Transmitting file data .
Committed revision 13.
Warning: post-commit hook failed (exit code 1) with output:
svn: E155004: Working copy '/etc/puppetlabs/code/environments/dev/modules/puppet' locked.
svn: E155004: '/etc/puppetlabs/code/environments/dev/modules/puppet' is already locked.
svn: run 'svn cleanup' to remove locks (type 'svn help cleanup' for details)
### 目錄改為 chown -R apache.apache xxx