/[smecontribs]/rpms/smeserver-dovecot-extras/contribs10/smeserver-dovecot-extras-0.1.6-Add-update-event-to-createlinks.patch
ViewVC logotype

Annotation of /rpms/smeserver-dovecot-extras/contribs10/smeserver-dovecot-extras-0.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)
Tue Apr 6 14:36:20 2021 UTC (3 years, 6 months ago) by brianr
Branch: MAIN
CVS Tags: smeserver-dovecot-extras-0_1_6-6_el7_sme, smeserver-dovecot-extras-0_1_6-8_el7_sme, smeserver-dovecot-extras-0_1_6-3_el7_sme, smeserver-dovecot-extras-0_1_6-5_el7_sme, smeserver-dovecot-extras-0_1_6-7_el7_sme, smeserver-dovecot-extras-0_1_6-2_el7_sme, smeserver-dovecot-extras-0_1_6-4_el7_sme, HEAD
* Tue Apr 06 2021 Brian Read <brianr@bjsystems.co.uk> 0.1.6-2.sme
- Add -update event to avoid reboot on install [SME: 11032]

1 brianr 1.1 diff -urN smeserver-dovecot-extras-0.1.6.old/createlinks smeserver-dovecot-extras-0.1.6/createlinks
2     --- smeserver-dovecot-extras-0.1.6.old/createlinks 2018-03-27 15:31:26.000000000 +0100
3     +++ smeserver-dovecot-extras-0.1.6/createlinks 2021-04-06 14:49:22.574289250 +0100
4     @@ -1,7 +1,30 @@
5     #!/usr/bin/perl -w
6    
7     use esmith::Build::CreateLinks qw(:all);
8     +# Koozali event specific for updating with yum without reboot
9     +$event = "smeserver-dovecot-extras-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     + /home/e-smith/files/public/dovecot-acl
16     + ))
17     + {
18     + templates2events( $file, $event );
19     + }
20     +#action needed in case we have a systemd unit
21     +event_link("systemd-default", $event, "10");
22     +event_link("systemd-reload", $event, "50");
23    
24     +#action specific to this package
25     +event_link("dovecot-acl", $event, "30");
26     +event_link("dovecot-compile-sieve", $event, "40");
27     +#services we need to restart
28     +#safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/some service");
29     +#and Server Manager panel link
30     +#panel_link('somefunction', 'manager');
31     +#
32     event_link("dovecot-acl", "email-update", "85");
33     event_link("dovecot-acl", "user-create", "85");
34     event_link("dovecot-acl", "post-upgrade", "85");

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