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

Annotation of /rpms/smeserver-affa/contribs10/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)
Wed Oct 7 09:57:07 2020 UTC (4 years, 1 month ago) by brianr
Branch: MAIN
Initial import

1 brianr 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: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