Re: Running svnsync from post-commit hook
From: Marc Girod <mgirod_at_iona.com>
Date: 2007-09-04 18:30:44 CEST
Hi,
I am still trying to get mirror synchronization to work from the
I have now:
I get however:
bar> svn -m 'start again' ci
Warning: 'post-commit' hook failed with error output:
and on the mirror server:
svnroot> sudo tail -1 /var/log/httpd/error_log
I check that my hooks are in place, executable:
svnroot> cat /x1/svntools/mirror/pre-revprop-change
USER="$3"
if [ "$USER" = "svnsync" ]; then exit 0; fi
echo "Only the 'svnsync' user may change revision properties on the mirror" >&2
USER="$2"
if [ "$USER" = "svnsync" ]; then exit 0; fi
echo "Only the svnsync user may commit new revisions" >&2
and match my post-commit on the source:
bar> tail -1 /x1/svnroot/bar/hooks/post-commit
Note that '/repos' should be OK:
I try to understand the httpd pam error...
svnroot> grep pam /etc/httpd/conf/httpd.conf
My user account is local (not a nis one) on both hosts, with the same
svnroot> grep svnsync /etc/passwd
It was added with useradd and is properly shadowed.
Marc
----------------------------
---------------------------------------------------------------------
|
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.