projects
/
bak-git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ce3f1f
)
specify ssh client in SSH enviroment variable
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Tue, 21 Jun 2011 21:31:31 +0000
(23:31 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Tue, 21 Jun 2011 21:31:31 +0000
(23:31 +0200)
bak-git-server.pl
patch
|
blob
|
history
diff --git
a/bak-git-server.pl
b/bak-git-server.pl
index
dd849db
..
f1806a4
100755
(executable)
--- a/
bak-git-server.pl
+++ b/
bak-git-server.pl
@@
-107,10
+107,11
@@
if ( $upgrade || $install ) {
system "ssh root\@$hostname apt-get install -y rsync";
}
} else {
- warn "# start ssh tunnels...";
+ my $ssh = $ENV{SSH} || 'ssh';
+ warn "# start $ssh tunnels...";
foreach my $host ( keys %$ssh_tunnel ) {
warn "## $host\n";
- open( $ssh_tunnel->{$host}, '-|', "ssh -N root\@$host &" ) or die $!;
+ open( $ssh_tunnel->{$host}, '-|', "
$
ssh -N root\@$host &" ) or die $!;
}
}