SVN commits don't close tickets, and /var/log/httpd/error_log shows
suspicious droppings:

sh: /tmp/tmpx7jgy-: Permission denied
sh: /tmp/tmpw_JEjQ: Permission denied
sh: /tmp/tmpkYLDR5: Permission denied
sh: /tmp/tmpg9Sai4: Permission denied

Could you help me solve this one?

I *suspect* the hook script gets dumped to /tmp, and SELinux is
interfering. Should I chcon -R /tmp? Is it possible to change the
location used for these temporary files so I'm not opening /tmp up?

I've installed trac-post-commit-hook-0.10.3 in
/var/svn/SVN_REPOSITORY/hooks, and called it from post-commit with:

REPOS="$1"
REV="$2"
LOG=`/usr/local/bin/svnlook log -r $REV $REPOS`
AUTHOR=`/usr/local/bin/svnlook author -r $REV $REPOS`
TRAC_ENV='/var/trac/PROJECT_NAME/'
PYTHON_EGG_CACHE='/usr/local/share/trac/plugins'
export PYTHON_EGG_CACHE

/usr/local/bin/python
/var/svn/SVN_REPOSITORY/hooks/trac-post-commit-hook-0.10.3 \
 -p "$TRAC_ENV"  \
 -r "$REV"       \
 -u "$AUTHOR"    \
 -m "$LOG"

Yours,
Garth.

--~--~---------~--~----~------------~-------~--~----~
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