[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Environment for the www-data user during post-commit.

From: Christopher Ness <chris_at_nesser.org>
Date: 2005-01-07 03:49:56 CET

On Fri, 2005-07-01 at 01:59 +0100, Teo Romera wrote:
> El mié, 05-01-2005 a las 11:18 -0600, kfogel@collab.net escribió:
>
> > Why not just set the environment variables to whatever you want, in
> > the hook script? Or, just source the www-data user's init files?
>
> There must be something else that is different when we launch the script
> from a shell from when a client commits. But what?

You tell us!
What does this command do? Run it as the same user apache runs as:

    $ env -i /path/to/hook-script [args]

In case you are not familiar with `env`, man env says:

       -i, --ignore-environment
              start with an empty environment

Cheers,
Chris

-- 
Software Engineering IV,
McMaster University
PGP Public Key: http://www.nesser.org/pgp-key/
21:42:33 up 22:45, 3 users, load average: 0.03, 0.17, 0.26 
http://www.fsf.org/philosophy/no-word-attachments.html

Received on Fri Jan 7 03:52:25 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.