/[smecontribs]/rpms/smeserver-affa/contribs8/smeserver-affa-fix-ssh-port.patch
ViewVC logotype

Annotation of /rpms/smeserver-affa/contribs8/smeserver-affa-fix-ssh-port.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Thu Aug 18 23:28:40 2016 UTC (8 years, 2 months ago) by reetspetit
Branch: MAIN
CVS Tags: smeserver-affa-3_2_2_3-4_el5_sme, smeserver-affa-3_2_2_3-5_el5_sme, HEAD
* Fri Aug 19 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 3.2.2.3-4.sme
- Fix ssh port [SME: 8904]

1 reetspetit 1.1 diff -ruN smeserver-affa-3.2.2.3.old/root/sbin/affa smeserver-affa-3.2.2.3/root/sbin/affa
2     --- smeserver-affa-3.2.2.3.old/root/sbin/affa 2016-08-19 00:39:50.000000000 +0200
3     +++ smeserver-affa-3.2.2.3/root/sbin/affa 2016-08-19 01:22:11.512000348 +0200
4     @@ -3013,7 +3013,7 @@
5     my $ak = $job{'RemoteAuthorizedKeysFile'};
6     (my $kd=$ak)=~s/(.*?)\/.*/$1/;
7     my $mkdirstr=$kd?"mkdir -p $kd && chmod 700 $kd &&":'';
8     - my $cmd="/bin/cat $kf | /usr/bin/ssh $job{'_sshOpts'} -q $job{'remoteUser'}\@$job{'remoteHostName'} 'cat - > /tmp/$SystemName.\$\$ && $mkdirstr touch $ak && grep -v \"$pubk\" < $ak >> /tmp/$SystemName.\$\$ ; mv -f /tmp/$SystemName.\$\$ $ak'";
9     + my $cmd="/bin/cat $kf | /usr/bin/ssh $job{'_sshOpts'} -q -p $job{'sshPort'} $job{'remoteUser'}\@$job{'remoteHostName'} 'cat - > /tmp/$SystemName.\$\$ && $mkdirstr touch $ak && grep -v \"$pubk\" < $ak >> /tmp/$SystemName.\$\$ ; mv -f /tmp/$SystemName.\$\$ $ak'";
10     dbg( "Exec Cmd: $cmd" );
11     my $err=system($cmd);
12     $s = $err ? "Sending public key to $job{'remoteHostName'} failed." : "Public key sent to $job{'remoteHostName'}";

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed