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

Contents of /rpms/smeserver-affa/contribs9/smeserver-affa-fix-ssh-port.patch

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


Revision 1.1 - (show annotations) (download)
Thu Aug 18 23:29:56 2016 UTC (8 years, 3 months ago) by reetspetit
Branch: MAIN
CVS Tags: smeserver-affa-3_2_2_3-8_el6_sme, smeserver-affa-3_2_2_3-5_el6_sme, smeserver-affa-3_2_2_3-6_el6_sme, smeserver-affa-3_2_2_3-7_el6_sme, HEAD
Error occurred while calculating annotation data.
* Fri Aug 19 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 3.2.2.3-5.sme
- Fix ssh port [SME: 8904]
- Modify changelog number to track define release number

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:06.000000000 +0200
3 +++ smeserver-affa-3.2.2.3/root/sbin/affa 2016-08-19 01:05:51.626000577 +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