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

Contents of /rpms/smeserver-sane/contribs10/smeserver-sane-0.3-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 Nov 10 15:22:23 2021 UTC (2 years, 11 months ago) by brianr
Branch: MAIN
CVS Tags: smeserver-sane-0_3-2_el7_sme, HEAD
* Wed Nov 10 2021 Brian Read <brianr@bjsystems.co.uk> 0.3-2.sme
- Add -update event to createlinks [SME: 11068]
- initial import to SME10

1 diff -urN smeserver-sane-0.3.old/createlinks smeserver-sane-0.3/createlinks
2 --- smeserver-sane-0.3.old/createlinks 2015-09-23 23:02:57.000000000 +0100
3 +++ smeserver-sane-0.3/createlinks 2021-11-10 15:15:53.593679534 +0000
4 @@ -1,6 +1,28 @@
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-sane-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 + /etc/sane.d/saned.conf
16 + /etc/xinetd.conf
17 + /etc/hosts.allow
18 +))
19 +{
20 + templates2events( $file, $event );
21 +}
22 +#action needed in case we have a systemd unit
23 +event_link('systemd-default', $event, '10');
24 +event_link('systemd-reload', $event, '50');
25 +#action specific to this package
26 +#event_link('action', $event, '30');
27 +#services we need to restart
28 +safe_symlink('restart',"root/etc/e-smith/events/$event/services2adjust/xinetd");
29 +#and Server Manager panel link
30 +#panel_link('somefunction', 'manager');
31
32 # config sane
33 foreach (qw(

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