/[smecontribs]/rpms/smeserver-dhcpmanager/contribs10/smeserver-dhcpmanager-2.0.4-Add-Update-event-to-createlinks.patch
ViewVC logotype

Contents of /rpms/smeserver-dhcpmanager/contribs10/smeserver-dhcpmanager-2.0.4-Add-Update-event-to-createlinks.patch

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


Revision 1.1 - (show annotations) (download)
Wed Mar 24 11:20:20 2021 UTC (3 years, 8 months ago) by brianr
Branch: MAIN
CVS Tags: smeserver-dhcpmanager-2_0_4-12_el7_sme, smeserver-dhcpmanager-2_0_4-11_el7_sme, smeserver-dhcpmanager-2_0_4-13_el7_sme, smeserver-dhcpmanager-2_0_4-16_el7_sme, smeserver-dhcpmanager-2_0_4-15_el7_sme, smeserver-dhcpmanager-2_0_4-18_el7_sme, smeserver-dhcpmanager-2_0_4-17_el7_sme, smeserver-dhcpmanager-2_0_4-10_el7_sme, HEAD
* Wed Mar 24 2021 Brian Read <brianr@bjsystems.co.uk> 2.0.4-10.sme
- Add Update event to createlinks [SME: 11029]

1 diff -urN smeserver-dhcpmanager-2.0.4.old/createlinks smeserver-dhcpmanager-2.0.4/createlinks
2 --- smeserver-dhcpmanager-2.0.4.old/createlinks 2015-08-13 13:43:24.000000000 +0100
3 +++ smeserver-dhcpmanager-2.0.4/createlinks 2021-03-24 10:43:32.560322321 +0000
4 @@ -2,5 +2,26 @@
5
6 use esmith::Build::CreateLinks qw(:all);
7
8 -# Links for the panel
9 panel_link("dhcpd", "manager");
10 +
11 +# our event specific for updating with yum without reboot
12 +$event = "smeserver-dhcpmanager-update";
13 +#add here the path to your templates needed to expand
14 +#see the /etc/systemd/system-preset/49-koozali.preset should be present for systemd integration on all you yum update event
15 +
16 + foreach my $file (qw(
17 + /etc/systemd/system-preset/49-koozali.preset
18 + ))
19 + {
20 + templates2events( $file, $event );
21 + }
22 +
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 +
27 + #action specific to this package
28 + #event_link("some event", $event, "30");
29 + #services we need to restart
30 + #safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/some service");
31 +

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