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

Contents of /rpms/smeserver-domains/contribs10/smeserver-domains-1.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)
Thu Mar 25 11:35:55 2021 UTC (3 years, 8 months ago) by brianr
Branch: MAIN
CVS Tags: smeserver-domains-1_4-3, smeserver-domains-1_4-6, smeserver-domains-1_4-5, smeserver-domains-1_4-4, HEAD
* Thu Mar 25 2021 Brian Read <brianr@bjsystems.co.uk> 1.4-3.sme
- Add Update event to createlinks [SME: 10950]

1 diff -urN smeserver-domains-1.4.old/createlinks smeserver-domains-1.4/createlinks
2 --- smeserver-domains-1.4.old/createlinks 2016-04-28 12:31:09.000000000 +0100
3 +++ smeserver-domains-1.4/createlinks 2021-03-25 11:24:27.840239989 +0000
4 @@ -1,9 +1,23 @@
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-domains-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 -# my $event;
14 -
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("dungog-domains", 'manager');
30 -
31 # safe_symlink("../../../functions/dungog-domains", "root/etc/e-smith/web/panels/manager/cgi-bin/dungog-domains");

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