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

Re: Problem with post-commit hook in SVN

From: Karsten Hoffrath <maillists_at_khoffrath.de>
Date: 2006-06-14 22:58:23 CEST

The parameter "-e ssh" specifys the remote shell.
This is started as the user which connects via ssh (here root).
So i think it is not necessary to give the absolut path because the
session on the remote machine has a full environment.

Regards,
Karsten

Ryan Schmidt wrote:
>
> On Jun 13, 2006, at 19:15, Raju N wrote:
>
>>>> I am facing problems with post-commit hook script in SVN. I have
>>>> a shell script at a location and is readable by apache. The
>>>> commit-email.pl script works just fine, but the shell script is not
>>>> working. I have added the following line to the post-commit hook
>>>>
>>>> /bin/sh <svn_reposiotry/hooks/shellscript.sh>
>>>>
>>>> If I execute the same command from command line it works. But
>>>> when I place the same command with absolute path in post-
>>>> commit hook script it doesn't.
>>>>
>>>> I am going wrong some where? Or do I have to make some
>>>> more settings in hook script to make my shell script work?
>>>> Please suggest!
>>>
>>> Obviously something's going wrong. Are you using non-absolute
>>> paths within shellscript.sh? Can you show us the contents of
>>> shellscript.sh?
>>
>> The contents of the shell script
>>
>> #!/bin/bash
>> /usr/bin/rsync -e ssh -avz <svn_repository> root@<destination server
>> address>:<svn_repository>
>>
>> I am using absolute paths in shell script as well. Please suggest
>>
>> Regards,
>> Raju N,
>
> Do you maybe have to say:
>
> /usr/bin/rsync -e /usr/bin/ssh .......
>
> ?
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jun 14 22:59:53 2006

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.