1 |
brianr |
1.1 |
diff -urN smeserver-gitweb-1.1.0.old/createlinks smeserver-gitweb-1.1.0/createlinks |
2 |
|
|
--- smeserver-gitweb-1.1.0.old/createlinks 2021-03-26 16:39:33.744069125 +0000 |
3 |
|
|
+++ smeserver-gitweb-1.1.0/createlinks 2021-03-26 17:56:30.494282012 +0000 |
4 |
|
|
@@ -1,15 +1,35 @@ |
5 |
|
|
#!/usr/bin/perl -w |
6 |
|
|
- |
7 |
|
|
use esmith::Build::CreateLinks qw(:all); |
8 |
|
|
+# our event specific for updating with yum without reboot |
9 |
|
|
+$event = 'smeserver-gitweb-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/e-smith-httpd"); |
26 |
|
|
+#and Server Manager panel link |
27 |
|
|
+#panel_link('somefunction', 'manager'); |
28 |
|
|
+ |
29 |
|
|
use File::Basename; |
30 |
|
|
|
31 |
|
|
# Domain Modify |
32 |
|
|
# ------------- |
33 |
|
|
|
34 |
|
|
-for my $event ( qw( domain-modify update-ifcfg ) ) |
35 |
|
|
+for my $event ( qw( domain-modify update-ifcfg smeserver-gitweb-update ) ) |
36 |
|
|
{ |
37 |
|
|
- safe_symlink("sigusr1", "root/etc/e-smith/events/$event/services2adjust/httpd-e-smith"); |
38 |
|
|
- templates2events("/etc/gitweb.conf", $event) |
39 |
|
|
- templates2events("/etc/e-smith/web/common/gitweb/home_text.html", $event) |
40 |
|
|
- templates2events("/etc/httpd/conf/httpd.conf", $event) |
41 |
|
|
+ #safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/httpd-e-smith"); |
42 |
|
|
+ templates2events("/etc/gitweb.conf", $event); |
43 |
|
|
+ templates2events("/etc/e-smith/web/common/gitweb/home_text.html", $event); |
44 |
|
|
+ templates2events("/etc/httpd/conf/httpd.conf", $event); |
45 |
|
|
} |