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.

  1. post-* hooks in subversion executed in empty environment
  2. 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
  3. 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

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -