1 |
brianr |
1.1 |
diff -urN smeserver-manager-AdminLTE-0.1.1.old/createlinks smeserver-manager-AdminLTE-0.1.1/createlinks |
2 |
|
|
--- smeserver-manager-AdminLTE-0.1.1.old/createlinks 1970-01-01 01:00:00.000000000 +0100 |
3 |
|
|
+++ smeserver-manager-AdminLTE-0.1.1/createlinks 2021-04-20 18:48:58.581333572 +0100 |
4 |
|
|
@@ -0,0 +1,21 @@ |
5 |
|
|
+#!/usr/bin/perl -w |
6 |
|
|
+use esmith::Build::CreateLinks qw(:all); |
7 |
|
|
+# Koozali event specific for updating with yum without reboot |
8 |
|
|
+$event = 'smeserver-manager-AdminLTE-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 |
|
|
+foreach my $file (qw( |
12 |
|
|
+ /etc/systemd/system-preset/49-koozali.preset |
13 |
|
|
+)) |
14 |
|
|
+{ |
15 |
|
|
+ templates2events( $file, $event ); |
16 |
|
|
+} |
17 |
|
|
+#action needed in case we have a systemd unit |
18 |
|
|
+event_link('systemd-default', $event, '10'); |
19 |
|
|
+event_link('systemd-reload', $event, '50'); |
20 |
|
|
+#action specific to this package |
21 |
|
|
+#event_link('action', $event, '30'); |
22 |
|
|
+#services we need to restart |
23 |
|
|
+safe_symlink('restart', 'root/etc/e-smith/events/$event/services2adjust/smanager'); |
24 |
|
|
+#and Server Mmanager panel link |
25 |
|
|
+#panel_link('somefunction', 'manager'); |