1 |
brianr |
1.1 |
diff -urN smeserver-diskusage-0.2.0.old/createlinks smeserver-diskusage-0.2.0/createlinks |
2 |
|
|
--- smeserver-diskusage-0.2.0.old/createlinks 2007-03-20 17:01:15.000000000 +0000 |
3 |
|
|
+++ smeserver-diskusage-0.2.0/createlinks 2021-03-24 11:29:29.000000000 +0000 |
4 |
|
|
@@ -1,8 +1,23 @@ |
5 |
|
|
#!/usr/bin/perl -w |
6 |
|
|
- |
7 |
|
|
use esmith::Build::CreateLinks qw(:all); |
8 |
|
|
-use File::Basename; |
9 |
|
|
+# our event specific for updating with yum without reboot |
10 |
|
|
+$event = 'smeserver-diskusage-update'; |
11 |
|
|
+#add here the path to your templates needed to expand |
12 |
|
|
+#see the /etc/systemd/system-preset/49-koozali.preset should be present for systemd integration on all you yum update event |
13 |
|
|
|
14 |
|
|
-my $panel = "manager"; |
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('diskusage', 'manager'); |
30 |
|
|
|
31 |
|
|
-panel_link("diskusage", $panel); |