debian - Cannot run svn update as www-data in post-commit hook -
i'm using svn under debian , commit web files using user, different www-data. commit process ok, want write post-commit hook capable perform svn update www-data working copy of svn repository, testing live updates of code.
i'm trying write post-commit hook in way: sudo -u www-data /usr/bin/svn update
unfortunately, working copy not updated when commit process completed. when try execute former sudo statement in cli, statement succeeds , working copy updated correctly. have clue this?
i've configured /etc/sudoers in such way not necessary type user password execute sudo.
- post-* hooks in subversion executed in empty environment
svn up
without parameters uses.
target, , can't recall current dir (if exist) hook-process, not live-wc, suppose, better way/usr/bin/svn update /path/to/live
- you can redirect stdout|stderr file in order see details later (or marshall output of hook svn-client , see hooks operations in real-time - add
1>&2
trailing part of command)
Comments
Post a Comment