/[smecontribs]/rpms/smeserver-nfs/contribs10/smeserver-nfs-1.2.0-Add-in-update-event.patch
ViewVC logotype

Contents of /rpms/smeserver-nfs/contribs10/smeserver-nfs-1.2.0-Add-in-update-event.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Wed Mar 3 12:35:43 2021 UTC (3 years, 8 months ago) by brianr
Branch: MAIN
CVS Tags: smeserver-nfs-1_2_0-20_el7_sme, smeserver-nfs-1_2_0-22_el7_sme, smeserver-nfs-1_2_0-19_el7_sme, smeserver-nfs-1_2_0-21_el7_sme, HEAD
* Wed Mar 03 2021 Brian Read <brianr@bjsystems.co.uk> 1.2.0-19.sme
- Add in -update event [SME:11272 ]

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(

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed