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