/[smecontribs]/rpms/smeserver-groupmembers-panel/contribs10/smeserver-groupmembers-panel-1.0.4-Add-Update-event-to-createlinks.patch
ViewVC logotype

Contents of /rpms/smeserver-groupmembers-panel/contribs10/smeserver-groupmembers-panel-1.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)
Sat Mar 27 09:58:54 2021 UTC (3 years, 7 months ago) by brianr
Branch: MAIN
CVS Tags: smeserver-groupmembers-panel-1_0_4-2_el7_sme, smeserver-groupmembers-panel-1_0_4-3_el7_sme, HEAD
* Sat Mar 27 2021 Brian Read <brianr@bjsystems.co.uk> 1.0.4-2.sme
- Add Update event to createlinks [SME: 11081]

1 diff -urN smeserver-groupmembers-panel-1.0.4.old/createlinks smeserver-groupmembers-panel-1.0.4/createlinks
2 --- smeserver-groupmembers-panel-1.0.4.old/createlinks 2021-03-27 09:34:48.165102778 +0000
3 +++ smeserver-groupmembers-panel-1.0.4/createlinks 2021-03-27 09:35:11.416329171 +0000
4 @@ -1,4 +1,27 @@
5 #!/usr/bin/perl -w
6 +use esmith::Build::CreateLinks qw(:all);
7 +# our event specific for updating with yum without reboot
8 +$event = 'smeserver-groupmembers-panel-update';
9 +#add here the path to your templates needed to expand
10 +#see the /etc/systemd/system-preset/49-koozali.preset should be present for systemd integration on all you yum update event
11 +
12 +foreach my $file (qw(
13 + /etc/systemd/system-preset/49-koozali.preset
14 +))
15 +{
16 + templates2events( $file, $event );
17 +}
18 +#action needed in case we have a systemd unit
19 +event_link('systemd-default', $event, '10');
20 +event_link('systemd-reload', $event, '50');
21 +#action specific to this package
22 +#event_link('action', $event, '30');
23 +#services we need to restart
24 +#safe_symlink('restart',root/etc/e-smith/events/$event/services2adjust/service);
25 +#and Server Manager panel link
26 +#panel_link('somefunction', 'manager');
27 +
28 +
29
30 use esmith::Build::CreateLinks qw(:all);
31

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