On Monday 08 March 2004 19:12, Jim Moore wrote:
> Here's what I have
>
> [root@hroastsrc01 hooks]# ls -ld post-commit .
> drwxr-sr-x 2 apache apache 4096 Mar 8 19:02 .
> -rwxr-xr-x 1 apache apache 25 Mar 8 19:02 post-commit
> [root@hroastsrc01 hooks]# cat post-commit
> #!/bin/sh
> /bin/touch ran
> [root@hroastsrc01 hooks]#
>
> Unfortunately, when I commit something, nothing happens (ie, "ran" isn't
> created). (Of course, when I do "sudo -u apache ./post-commit" then the
> file is created. Just not from mod_dav_svn.) I've stripped it down as
> much as I can, and searched the lists and Google, but can't figure out
> what's wrong. Nothing's written to the log file except the normal DAV
> stuff.
>
> Any ideas?
IIRC, the hook scripts aren't necessarily run out of the repository's hooks/
directory. Try touching with an absolute path in a directory that is
writable by the apache user.
-John
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Mar 9 10:54:58 2004