Re: [Codestriker-user] CVS_RSH (cvs over :ext:/SSH), the state of states and selinux advice (while
Brought to you by:
sits
|
From: David S. <si...@us...> - 2006-04-18 07:33:00
|
Hi Jack,
> [...]
> So, for now, my workaround is to put:
>
> export CVS_RSH /usr/bin/ssh
>
> in /etc/sysconfig/httpd unless someone can
> suggest a better solution as to why either
> the original code didn't work.
This sounds to me like you have setup Codestriker with apache2 and
mod_perl? Most people I know are using CVS with pserver, or direct
access, which is why this isn't an issue reported on very often.
If you deploy Codestriker in plain old CGI mode, I suspect the existing
code in Cvs.pm which export CVS_RSH will actually work. Under mod_perl
however, this probably gets suppressed, particularly under apache2.
Can you try with CGI to see if this works?
> the perl script it is in UNLESS (for some reason)
> it was from the environment of the server when
> it started. So, using "SetEnv CVS_RSH /usr/bin/ssh"
> in httpd.conf and using "$ENV{'CVS_RSH'}='/usr/bin/ssh';'
> in the scripts will affect the running environment
> but not the one the open runs in.
I think this caveat is right with apache2/mod_perl. Its a damn shame
cvs doesn't have a command-line option for specifying what rsh program
to use, like rsync, rather than using an environment variable.
Cheers,
David
|