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

post-commit & user logon (svn+ssh)

From: Collin Peters <cpeters_at_intouchtrainer.com>
Date: 2004-07-13 01:28:16 CEST

I have a script that is being run on post-commit. This is a perl script
which does some synchronization of some pictures to a web site.
Everything works great in my script when I run it from the command line,
but when it is run from post-commit it breaks because it seems it is not
fully logging onto the system to run.

The main issue I'm having is with rsync. rsync is what I'm using to
sync the pictures to the web site. I have ssh keys setup along with
ssh-add, etc... But none of that seems to work when run from post-commit.

The script still sends an email just like the commit-email.pl file. If
I include the username in that email, it is correct. However, it seems
that normal shell logon operations (such as executing .bashrc) don't get
run from the whole commit process.

BTW, I should mention that I am using svn+ssh for everything here. Not
apache. Does anyone have any pointers on getting this to work? Is it
as simply as an option I am missing? Or perhaps something more advanced.

Collin

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jul 13 01:28:26 2004

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.