Re: Commit blocked by pre-commit hook (exit code 255) with no output
From: Qazwart <qazwart_at_gmail.com>
Date: Sun, 15 Apr 2012 19:49:39 -0400
On Apr 15, 2012, at 4:54 PM, Armando Perico <pericona_at_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 David_at_Weintraub.name Sent from my iPhone while riding in my Ferrari. (Jealous?)Received on 2012-04-16 01:50:17 CEST |
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.