Hey there,

This was indeed a problem with my webserver running as a different user then
my svn. I setup a protected cgi script on my webserver and pass all the
required preoperties (just revision number) from my svn post-commit hook to
my cgi script. Thiscgi script then calls the trac-post-commit-hook and
everything works like a charm.

Mark

-----Oorspronkelijk bericht-----
Van: Matthew Caron [mailto:[email protected]] 
Verzonden: woensdag 1 juni 2011 17:26
Aan: [email protected]
CC: [email protected]
Onderwerp: Re: [Trac] trac-post-commit-hook not working

On 06/01/2011 11:14 AM, [email protected] wrote:
> Ah, but my emails are being sent and received correctly. So the 
> commit-email.pl is working as it should. I mainly added this to test 
> that the REPOS and the REV were being set correctly, and the are.

Okay, so then the second script is working. Debug the first.

It also might help if we know what it was supposed to do, and what it is not
doing.

> Is it possible that there is a problem with my TRAC_ENV?

Could be,

> I set this to
> the location of my trac webpage. There is one other snag, my trac 
> website runs as a different user.

Then likely the user running the hook can't read the env.

> Could this be causing problems,

Yes.

> and if  so, how do I get around that.

A couple of ways:
  1. Change perms
  2. sudo -u <website user>

> Seeing that I can' change the owner on either side.  Changing the 
> owner on svn breaks my svn and changing the owner of the trac webpage 
> breaks trac.

Unsurprising. You can, however, put the svn user in a group, chgrp -R the
files so that they're owned by that group, then chmod the files so that
group has the necessary permissions.

--
Matthew Caron
Build Engineer
Sixnet | www.sixnet.com
O +1 518 877 5173 Ext. 138
F +1 518 602 9209
[email protected]


-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.

Reply via email to