Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I've installed subversion and have the following setup:

  • The repo is /home/svn/tester (apache:apache).
  • The site is /var/www/tester (tester:tester).

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

In /home/svn/tester/hooks/post-commit I have:

sudo -u tester /usr/bin/svn update /home/tester --username aaa --password bbb

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

I have added to /etc/sudoers:

tester ALL=(ALL) NOPASSWD: /usr/bin/svn

I've commented out requiretty in /etc/sudoers:

#Defaults    requiretty

Once I run the commit I receive the following message (in tortoisesvn):

Commit failed (details follow):
MERGE of '/svn/tester': 200 OK (https://[site name])

Am I going about this the correct way? If so how can I get passed this error?

share|improve this question
    
This question is more suited for stackoverflow.com –  Nick Apr 12 '12 at 20:33
1  
actually, it might even be suited for serverfault –  Bora Apr 13 '12 at 15:44
    
Is it svn update /home/tester or svn update /var/www/tester in the post commit hook? Also shouldn't /var/www/tester belong to apache? –  Cristian Ciupitu Oct 20 '13 at 21:01

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.