Question

I have this in my file called post-commit.sh in my hooks folder:

/usr/bin/svn update /var/www --username XXXXX --password XXXXX

now if I run:

bash post-commit.sh

everything works, but if I do a commit from my pc then it doesn't work. I've added the www-data user to the group "developers" thats the folder and file owner group for the website and svn directory. Ive made the sh file executable. What am I missing? Thanks James

Était-ce utile?

La solution

The script should be named post-commit, not post-commit.sh.

http://svnbook.red-bean.com/en/1.7/svn.ref.reposhooks.post-commit.html

Autres conseils

you're missing the environment. Who does the script run as, try running your bash script as that user, from the directory SVN server is running.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top