1 |
diff -urN smeserver-nfs-1.2.0.old/createlinks smeserver-nfs-1.2.0/createlinks |
2 |
--- smeserver-nfs-1.2.0.old/createlinks 2015-01-04 21:06:28.000000000 +0000 |
3 |
+++ smeserver-nfs-1.2.0/createlinks 2021-03-03 12:23:45.382734887 +0000 |
4 |
@@ -2,13 +2,35 @@ |
5 |
|
6 |
use esmith::Build::CreateLinks qw(:all); |
7 |
|
8 |
+# our event specific for updating with yum without reboot |
9 |
+$event = "smeserver-nfs-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 |
+ /etc/exports |
16 |
+)) |
17 |
+{ |
18 |
+ templates2events( $file, $event ); |
19 |
+} |
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 |
+ |
25 |
+#action specific to this package |
26 |
+#event_link("nfs-update", $event, "60"); |
27 |
+#services we need to restart |
28 |
+safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/nfs"); |
29 |
+ |
30 |
+ |
31 |
#-------------------------------------------------- |
32 |
## functions for manager panel |
33 |
##-------------------------------------------------- |
34 |
panel_link("nfsshare", "manager"); |
35 |
|
36 |
|
37 |
- |
38 |
foreach (qw(sysconfig/nfs exports hosts.allow)) |
39 |
{ |
40 |
templates2events("/etc/$_", qw( |