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

post-commit hook script

From: Hensley, Richard <Richard.Hensley_at_McKesson.com>
Date: 2003-03-18 02:12:05 CET

I'm trying to use the hot-backup.py script during the post-commit hook
script, but I can't seem to get it to work.

All my files are owned by www:www, which is the apache user. The
post-commit is executable. Here are the contents of post-commit:

/usr/userdata/repos/bin/hot-backup.py /usr/userdata/repos
/usr/userdata/backup >> usr/userdata/repos/logs/backup.log
echo "$REPOS $REV committed" >> /usr/userdata/repos/logs/commit.log

When I commit to the repository, the file commit.log gets a message on
each commit. However, the backup.log file gets the message "Beginning
hot backup of '/usr/userdata/repos'." and then no more messages.

If I log onto the computer as www, change into the hooks directory, and
type "./post-commit /usr/userdata/repos 5", the script works as
expected. Meaning I get a backup of the repository, the backup.log file
contains all the lines sent to stdout, and I get a message in
commit.log.

Does anybody have any insight as to where I went wrong?

Richard
Received on Tue Mar 18 03:55:25 2003

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

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