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