0

I've installed subversion and have the following setup:

Repo: /home/svn/tester (apache:apache) 
The site is: /var/www/tester (tester:tester)

I've checked out the tester repo to /var/www/tester

What I am trying to do is keep the owners of the files in /home/svn/tester = apache and the owner of files in /var/www/tester = tester

Now (after commit) owner of the files in /home/svn/tester is Apache

My post-commit file:

#! /bin/sh
/usr/bin/svn update /home/svn/tester
Bartek Banachewicz
  • 38,596
  • 7
  • 91
  • 135
Neokortex
  • 312
  • 4
  • 14

1 Answers1

0

You should update local working copy instead of repository:

#!/bin/sh
/usr/bin/svn update /var/www/tester
Bartek Banachewicz
  • 38,596
  • 7
  • 91
  • 135
  • sorry, i was wrong when i ask question, my post-commit file #!/bin/sh /usr/bin/svn update /var/www/tester – Neokortex Jun 24 '12 at 10:33