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

Contents of /rpms/smeserver-diskusage/contribs10/smeserver-diskusage-0.2.0-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:52:59 2021 UTC (3 years, 8 months ago) by brianr
Branch: MAIN
CVS Tags: smeserver-diskusage-0_2_0-5_el7_sme, smeserver-diskusage-0_2_0-6_el7_sme, smeserver-diskusage-0_2_0-4_el7_sme, HEAD
* Wed Mar 24 2021 Brian Read <brianr@bjsystems.co.uk> 0.2.0-4.sme
- Add Update event to createlinks [SME: 11030]

1 diff -urN smeserver-diskusage-0.2.0.old/createlinks smeserver-diskusage-0.2.0/createlinks
2 --- smeserver-diskusage-0.2.0.old/createlinks 2007-03-20 17:01:15.000000000 +0000
3 +++ smeserver-diskusage-0.2.0/createlinks 2021-03-24 11:29:29.000000000 +0000
4 @@ -1,8 +1,23 @@
5 #!/usr/bin/perl -w
6 -
7 use esmith::Build::CreateLinks qw(:all);
8 -use File::Basename;
9 +# our event specific for updating with yum without reboot
10 +$event = 'smeserver-diskusage-update';
11 +#add here the path to your templates needed to expand
12 +#see the /etc/systemd/system-preset/49-koozali.preset should be present for systemd integration on all you yum update event
13
14 -my $panel = "manager";
15 +foreach my $file (qw(
16 + /etc/systemd/system-preset/49-koozali.preset
17 +))
18 +{
19 + templates2events( $file, $event );
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 +#action specific to this package
25 +#event_link('action', $event, '30');
26 +#services we need to restart
27 +#safe_symlink('restart', 'root/etc/e-smith/events/$event/services2adjust/<service>)
28 +#and Server Manager panel link
29 +panel_link('diskusage', 'manager');
30
31 -panel_link("diskusage", $panel);

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