1 |
brianr |
1.1 |
diff -urN smeserver-domains-1.4.old/createlinks smeserver-domains-1.4/createlinks |
2 |
|
|
--- smeserver-domains-1.4.old/createlinks 2016-04-28 12:31:09.000000000 +0100 |
3 |
|
|
+++ smeserver-domains-1.4/createlinks 2021-03-25 11:24:27.840239989 +0000 |
4 |
|
|
@@ -1,9 +1,23 @@ |
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-domains-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 |
|
|
-# my $event; |
14 |
|
|
- |
15 |
|
|
+foreach my $file (qw( |
16 |
|
|
+ /etc/systemd/system-preset/49-koozali.preset |
17 |
|
|
+)) |
18 |
|
|
+{ |
19 |
|
|
+ templates2events( $file, $event ); |
20 |
|
|
+} |
21 |
|
|
+#action needed in case we have a systemd unit |
22 |
|
|
+event_link('systemd-default', $event, '10'); |
23 |
|
|
+event_link('systemd-reload', $event, '50'); |
24 |
|
|
+#action specific to this package |
25 |
|
|
+#event_link('action', $event, '30'); |
26 |
|
|
+#services we need to restart |
27 |
|
|
+#safe_symlink('restart',root/etc/e-smith/events/$event/services2adjust/service); |
28 |
|
|
+#and Server Manager panel link |
29 |
|
|
panel_link("dungog-domains", 'manager'); |
30 |
|
|
- |
31 |
|
|
# safe_symlink("../../../functions/dungog-domains", "root/etc/e-smith/web/panels/manager/cgi-bin/dungog-domains"); |