Subversion and Apache are installed on my server, and the Apache web directory is also a working copy of Subversion. The reason for this is because the simple svn update /server/staging command will deploy the last source to the staging server.
Apache shared web directory: /server/staging - (This is a working copy of SVN.)
I have two users on my server: "richard" and "austin". They are both members of the development team. I recursively set permissions in the / server directory for richard: developers using "sudo chown -R richard: developers / server".
Then I set read, write, and execute permissions for both richard and the development team.
So, "austin" should now use the svn update /server/staging command? However, when he tries, he gets an error:
svn: Can't open file '/server/staging/.svn/lock': Permission denied
If I recursively change the owner / server to austin: developers, it can execute the command just fine, but then "richard" cannot.
How to fix the problem? I want to create a post-commit hook to automatically deploy an intermediate site when the files are committed, but I see no way for this to work for both users. The hook will be:
/usr/bin/svn update /server/staging
Using the same account for both of them will not really be an acceptable solution, and I donβt know how to run the command inside hook as "root".
Any help is appreciated!
source share