/[smecontribs]/rpms/smeserver-motd/contribs10/smeserver-motd-0.1-Add-expansion-of-sshd-conf.patch
ViewVC logotype

Contents of /rpms/smeserver-motd/contribs10/smeserver-motd-0.1-Add-expansion-of-sshd-conf.patch

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


Revision 1.1 - (show annotations) (download)
Thu Mar 25 10:41:16 2021 UTC (3 years, 8 months ago) by brianr
Branch: MAIN
CVS Tags: smeserver-motd-0_1-8, HEAD
Error occurred while calculating annotation data.
* Thu Mar 25 2021 Brian Read <brianr@bjsystems.co.uk> 0.1-8.sme
- Add /etc/ssh/sshd_conf expansion to -update event [SME: 11066]

1 diff -urN smeserver-motd-0.1.old/createlinks smeserver-motd-0.1/createlinks
2 --- smeserver-motd-0.1.old/createlinks 2021-03-25 08:59:32.800181252 +0000
3 +++ smeserver-motd-0.1/createlinks 2021-03-25 10:36:42.373618285 +0000
4 @@ -8,7 +8,8 @@
5 foreach my $file (qw(
6 /etc/systemd/system-preset/49-koozali.preset
7 /etc/profile.d/motd.sh
8 -))
9 + /etc/ssh/sshd_config
10 + ))
11 {
12 templates2events( $file, $event );
13 }
14 @@ -18,26 +19,19 @@
15 #action specific to this package
16 #event_link('action', $event, '30');
17 #services we need to restart
18 -#safe_symlink('restart', 'root/etc/e-smith/events/$event/services2adjust/<service>)
19 +safe_symlink('restart', "root/etc/e-smith/events/$event/services2adjust/sshd");
20 #and Server Manager panel link
21 #panel_link('somefunction', 'manager');
22 -
23 -
24 -
25 -# Need some thought on when the templates should be expanded and when the action should be called.
26 -
27 -use esmith::Build::CreateLinks qw(:all);
28 -
29 +#Need some thought on when the templates should be expanded and when the action should be called.
30 foreach (qw(
31 -
32 /etc/profile.d/motd.sh
33 - ))
34 -{
35 - templates2events("$_", qw(
36 + ))
37 +{templates2events("$_", qw(
38 post-upgrade
39 console-save
40 bootstrap-console-save
41 remoteaccess-update
42 -
43 ));
44 }
45 +
46 +1

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