subversion commit hook should run as domain user

1 post / 0 new
#1 Sat, 01/09/2010 - 16:44
quadrox

subversion commit hook should run as domain user

I have a subversion repository for a web project with a commit hook that automatically updates the version on the server when something is committed. Since the commit hook is run as www-data, I have to make server version of the repository owned by www-data. However, this means that I cannot edit the files as the logged in user, because the permissions are only 755.

Is it possible to get the commit hook to be run as the domain user instead? I tried to use the "User and Group" setting of the virtual server , but for some reason that didn't change the commit hook from being run as www-data. Maybe the reason is that it only works for CGI. Is there an alternative?

EDIT:

nevermind, I found a solution myself. I added two lines to the commit hook, one for "chmod 775" and one to set the proper group, so users still can upate.