/[smeserver]/rpms/e-smith-openssh/sme9/e-smith-openssh-2.4.0-ssh_printmotd.bz8939.patch
ViewVC logotype

Annotation of /rpms/e-smith-openssh/sme9/e-smith-openssh-2.4.0-ssh_printmotd.bz8939.patch

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


Revision 1.1 - (hide annotations) (download)
Fri Jul 3 19:56:18 2015 UTC (9 years, 4 months ago) by stephdl
Branch: MAIN
CVS Tags: e-smith-openssh-2_4_0-6_el6_sme, HEAD
* Thu Jun 25 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 2.4.0-6.sme
- enabled the motd message [SME: 8939]
- Code done by John Crisp <jcrisp@safeandsoundit.co.uk> and
- Stefano Zamboni <zamboni@mind-at-work.it>

1 stephdl 1.1 diff -Nur e-smith-openssh-2.4.0.bz.8939.old/root/etc/e-smith/db/configuration/defaults/sshd/MotdStatus e-smith-openssh-2.4.0.bz.8939/root/etc/e-smith/db/configuration/defaults/sshd/MotdStatus
2     --- e-smith-openssh-2.4.0.bz.8939.old/root/etc/e-smith/db/configuration/defaults/sshd/MotdStatus 1970-01-01 01:00:00.000000000 +0100
3     +++ e-smith-openssh-2.4.0.bz.8939/root/etc/e-smith/db/configuration/defaults/sshd/MotdStatus 2015-06-25 19:04:29.320484394 +0200
4     @@ -0,0 +1 @@
5     +enabled
6     diff -Nur e-smith-openssh-2.4.0.bz.8939.old/root/etc/e-smith/templates/etc/ssh/sshd_config/60PrintMotd e-smith-openssh-2.4.0.bz.8939/root/etc/e-smith/templates/etc/ssh/sshd_config/60PrintMotd
7     --- e-smith-openssh-2.4.0.bz.8939.old/root/etc/e-smith/templates/etc/ssh/sshd_config/60PrintMotd 2015-06-25 18:33:53.112340974 +0200
8     +++ e-smith-openssh-2.4.0.bz.8939/root/etc/e-smith/templates/etc/ssh/sshd_config/60PrintMotd 2015-06-25 18:35:25.276957426 +0200
9     @@ -1 +1,13 @@
10     -PrintMotd no
11     +{
12     +my $MotdStatus = $sshd{'MotdStatus'} || 'enabled';
13     +
14     +if ( $MotdStatus eq 'disabled' )
15     + {
16     + $OUT .= "PrintMotd no\n";
17     + }
18     +
19     +else
20     + {
21     + $OUT .= "PrintMotd yes\n";
22     + }
23     +}

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