1 |
diff -urN smeserver-usbdisksmanager-1.2.old/createlinks smeserver-usbdisksmanager-1.2/createlinks |
2 |
--- smeserver-usbdisksmanager-1.2.old/createlinks 2021-03-27 10:00:21.494040412 +0000 |
3 |
+++ smeserver-usbdisksmanager-1.2/createlinks 2021-03-27 10:02:13.239537898 +0000 |
4 |
@@ -1,3 +1,23 @@ |
5 |
#!/usr/bin/perl -w |
6 |
use esmith::Build::CreateLinks qw(:all); |
7 |
-safe_symlink("/etc/e-smith/web/functions/wrapper","root/etc/e-smith/web/panels/manager/cgi-bin/usbdisks"); |
8 |
+# our event specific for updating with yum without reboot |
9 |
+$event = 'smeserver-usbdisksmanager-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 |
+)) |
16 |
+{ |
17 |
+ templates2events( $file, $event ); |
18 |
+} |
19 |
+#action needed in case we have a systemd unit |
20 |
+event_link('systemd-default', $event, '10'); |
21 |
+event_link('systemd-reload', $event, '50'); |
22 |
+#action specific to this package |
23 |
+#event_link('action', $event, '30'); |
24 |
+#services we need to restart |
25 |
+#safe_symlink('restart',root/etc/e-smith/events/$event/services2adjust/service); |
26 |
+#and Server Manager panel link |
27 |
+panel_link('usbdisks', 'manager'); |
28 |
+ |