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

Annotation of /rpms/smeserver-fetchmail/contribs10/smeserver-fetchmail-1.6-Add-Update-event-to-createlinks.patch

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


Revision 1.1 - (hide annotations) (download)
Fri Mar 26 12:34:27 2021 UTC (3 years, 7 months ago) by brianr
Branch: MAIN
CVS Tags: smeserver-fetchmail-1_6-24_el7_sme, smeserver-fetchmail-1_6-18_el7_sme, smeserver-fetchmail-1_6-27_el7_sme, smeserver-fetchmail-1_6-22_el7_sme, smeserver-fetchmail-1_6-21_el7_sme, smeserver-fetchmail-1_6-26_el7_sme, smeserver-fetchmail-1_6-25_el7_sme, smeserver-fetchmail-1_6-20_el7_sme, smeserver-fetchmail-1_6-23_el7_sme, smeserver-fetchmail-1_6-19_el7_sme, HEAD
* Fri Mar 26 2021 Brian Read <brianr@bjsystems.co.uk> 1.6-18.sme
- Add Update event to createlinks [SME: 11058]

1 brianr 1.1 diff -urN smeserver-fetchmail-1.6.old/createlinks smeserver-fetchmail-1.6/createlinks
2     --- smeserver-fetchmail-1.6.old/createlinks 2021-03-26 11:59:24.081764441 +0000
3     +++ smeserver-fetchmail-1.6/createlinks 2021-03-26 12:29:11.280842498 +0000
4     @@ -1,6 +1,25 @@
5     #!/usr/bin/perl -w
6     -
7     use esmith::Build::CreateLinks qw(:all);
8     +# our event specific for updating with yum without reboot
9     +$event = 'smeserver-fetchmail-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     +))
16     +{
17     + templates2events( $file, $event );
18     +}
19     +#action needed in case we have a systemd unit
20     +event_link('systemd-default', $event, '10');
21     +event_link('systemd-reload', $event, '50');
22     +#action specific to this package
23     +#event_link('action', $event, '30');
24     +#services we need to restart
25     +#safe_symlink('restart',root/etc/e-smith/events/$event/services2adjust/service);
26     +#and Server Manager panel link
27     +#panel_link('somefunction', 'manager');
28    
29     #--------------------------------------------------
30     # functions for manager panel

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