1 |
brianr |
1.1 |
diff -urN smeserver-sane-0.3.old/createlinks smeserver-sane-0.3/createlinks |
2 |
|
|
--- smeserver-sane-0.3.old/createlinks 2015-09-23 23:02:57.000000000 +0100 |
3 |
|
|
+++ smeserver-sane-0.3/createlinks 2021-11-10 15:15:53.593679534 +0000 |
4 |
|
|
@@ -1,6 +1,28 @@ |
5 |
|
|
#! /usr/bin/perl -w |
6 |
|
|
- |
7 |
|
|
use esmith::Build::CreateLinks qw(:all); |
8 |
|
|
+# our event specific for updating with yum without reboot |
9 |
|
|
+$event = 'smeserver-sane-update'; |
10 |
|
|
+#add here the path to your templates needed to expand |
11 |
|
|
+#see the /etc/systemd/system-preset/49-koozali.preset should be present for systemd integration on all you yum update event |
12 |
|
|
+ |
13 |
|
|
+foreach my $file (qw( |
14 |
|
|
+ /etc/systemd/system-preset/49-koozali.preset |
15 |
|
|
+ /etc/sane.d/saned.conf |
16 |
|
|
+ /etc/xinetd.conf |
17 |
|
|
+ /etc/hosts.allow |
18 |
|
|
+)) |
19 |
|
|
+{ |
20 |
|
|
+ templates2events( $file, $event ); |
21 |
|
|
+} |
22 |
|
|
+#action needed in case we have a systemd unit |
23 |
|
|
+event_link('systemd-default', $event, '10'); |
24 |
|
|
+event_link('systemd-reload', $event, '50'); |
25 |
|
|
+#action specific to this package |
26 |
|
|
+#event_link('action', $event, '30'); |
27 |
|
|
+#services we need to restart |
28 |
|
|
+safe_symlink('restart',"root/etc/e-smith/events/$event/services2adjust/xinetd"); |
29 |
|
|
+#and Server Manager panel link |
30 |
|
|
+#panel_link('somefunction', 'manager'); |
31 |
|
|
|
32 |
|
|
# config sane |
33 |
|
|
foreach (qw( |