On Apr 15, 2012, at 4:54 PM, Armando Perico <peric...@usi.ch> wrote: > I actually don't have an apache user running, however, when I run it > manually, the script works fine, am I missing anything ?
Of course you do! Otherwise, how could a file be "owned" by user "apache"? Check the /etc/passwd file. There's probably an entry for user apache. What this user might not have is a login shell (done by setting the shell in /etc/passwd to /bin/false) or might not have a valid password. However, if you can sudo/login to root, you can sudo/login to apache. Run the pre-commit hook as user apache and unset PATH. This will emulate how your pre-commit hook is being run. -- David Weintraub da...@weintraub.name Sent from my iPhone while riding in my Ferrari. (Jealous?)