1 |
brianr |
1.1 |
diff -urN smeserver-dovecot-extras-0.1.6.old/createlinks smeserver-dovecot-extras-0.1.6/createlinks |
2 |
|
|
--- smeserver-dovecot-extras-0.1.6.old/createlinks 2018-03-27 15:31:26.000000000 +0100 |
3 |
|
|
+++ smeserver-dovecot-extras-0.1.6/createlinks 2021-04-06 14:49:22.574289250 +0100 |
4 |
|
|
@@ -1,7 +1,30 @@ |
5 |
|
|
#!/usr/bin/perl -w |
6 |
|
|
|
7 |
|
|
use esmith::Build::CreateLinks qw(:all); |
8 |
|
|
+# Koozali event specific for updating with yum without reboot |
9 |
|
|
+$event = "smeserver-dovecot-extras-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 |
|
|
+ /home/e-smith/files/public/dovecot-acl |
16 |
|
|
+ )) |
17 |
|
|
+ { |
18 |
|
|
+ templates2events( $file, $event ); |
19 |
|
|
+ } |
20 |
|
|
+#action needed in case we have a systemd unit |
21 |
|
|
+event_link("systemd-default", $event, "10"); |
22 |
|
|
+event_link("systemd-reload", $event, "50"); |
23 |
|
|
|
24 |
|
|
+#action specific to this package |
25 |
|
|
+event_link("dovecot-acl", $event, "30"); |
26 |
|
|
+event_link("dovecot-compile-sieve", $event, "40"); |
27 |
|
|
+#services we need to restart |
28 |
|
|
+#safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/some service"); |
29 |
|
|
+#and Server Manager panel link |
30 |
|
|
+#panel_link('somefunction', 'manager'); |
31 |
|
|
+# |
32 |
|
|
event_link("dovecot-acl", "email-update", "85"); |
33 |
|
|
event_link("dovecot-acl", "user-create", "85"); |
34 |
|
|
event_link("dovecot-acl", "post-upgrade", "85"); |