1 |
diff -urN smeserver-manager-AdminLTE-0.1.3.old/createlinks smeserver-manager-AdminLTE-0.1.3/createlinks |
2 |
--- smeserver-manager-AdminLTE-0.1.3.old/createlinks 2021-04-26 07:47:41.000000000 +0100 |
3 |
+++ smeserver-manager-AdminLTE-0.1.3/createlinks 2021-11-30 11:06:17.741233761 +0000 |
4 |
@@ -1,21 +1,28 @@ |
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 |
+my $event = 'smeserver-manager-AdminLTE-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 |
foreach my $file (qw( |
13 |
/etc/systemd/system-preset/49-koozali.preset |
14 |
+ /usr/share/smanager/conf/srvmngr.conf |
15 |
+ /etc/httpd/conf/httpd.conf |
16 |
)) |
17 |
{ |
18 |
templates2events( $file, $event ); |
19 |
} |
20 |
+event_link('navigation2-conf', "$event", '80'); |
21 |
+event_link('routes2-conf', "$event", '80'); |
22 |
+event_link('locales2-conf', "$event", '80'); |
23 |
#action needed in case we have a systemd unit |
24 |
-event_link('systemd-default', $event, '10'); |
25 |
-event_link('systemd-reload', $event, '50'); |
26 |
+event_link('systemd-default', $event, '88'); |
27 |
+event_link('systemd-reload', $event, '89'); |
28 |
#action specific to this package |
29 |
#event_link('action', $event, '30'); |
30 |
#services we need to restart |
31 |
safe_symlink('restart', "root/etc/e-smith/events/$event/services2adjust/smanager"); |
32 |
+safe_symlink("reload", "root/etc/e-smith/events/$event/services2adjust/httpd-e-smith"); |
33 |
+ |
34 |
#and Server Mmanager panel link |
35 |
#panel_link('somefunction', 'manager'); |