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

Annotation of /rpms/smeserver-rkhunter/contribs10/smeserver-rkhunter-1.4.0-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)
Mon Mar 29 17:49:08 2021 UTC (3 years, 7 months ago) by brianr
Branch: MAIN
CVS Tags: smeserver-rkhunter-1_4_0-7_el7_sme, HEAD
* Mon Mar 29 2021 Brian Read <brianr@bjsystems.co.uk> 1.4.0-7.sme
- Add Update event to createlinks [SME: 11025]

1 brianr 1.1 diff -urN smeserver-rkhunter-1.4.0.old/createlinks smeserver-rkhunter-1.4.0/createlinks
2     --- smeserver-rkhunter-1.4.0.old/createlinks 2015-08-13 15:07:14.000000000 +0100
3     +++ smeserver-rkhunter-1.4.0/createlinks 2021-03-29 18:42:35.244269417 +0100
4     @@ -1,27 +1,34 @@
5     #!/usr/bin/perl -w
6     -
7     use esmith::Build::CreateLinks qw(:all);
8     -
9     -for my $event (qw(
10     - bootstrap-console-save
11     - remoteaccess-update
12     - ))
13     +# our event specific for updating with yum without reboot
14     +$event = 'smeserver-rkhunter-update';
15     +#add here the path to your templates needed to expand
16     +#see the /etc/systemd/system-preset/49-koozali.preset should be present for systemd integration on all you yum update event
17     +
18     +foreach my $file (qw(
19     + /etc/systemd/system-preset/49-koozali.preset
20     +))
21     {
22     - templates2events("/etc/rkhunter.conf", $event);
23     - templates2events("/etc/sysconfig/rkhunter", $event);
24     + templates2events( $file, $event );
25     }
26     -
27     -#!/usr/bin/perl -w
28     -
29     -use esmith::Build::CreateLinks qw(:all);
30     +#action needed in case we have a systemd unit
31     +event_link('systemd-default', $event, '10');
32     +event_link('systemd-reload', $event, '50');
33     +#action specific to this package
34     +#event_link('action', $event, '30');
35     +#services we need to restart
36     +#safe_symlink('restart',root/etc/e-smith/events/$event/services2adjust/service);
37     +#and Server Manager panel link
38     +#panel_link('somefunction', 'manager');
39    
40     for my $event (qw(
41     bootstrap-console-save
42     remoteaccess-update
43     + smeserver-rkhunter-update
44     ))
45     {
46     - templates2events("/etc/rkhunter.conf", $event)
47     - ; templates2events("/etc/sysconfig/rkhunter", $event);
48     + templates2events("/etc/rkhunter.conf", $event);
49     + templates2events("/etc/sysconfig/rkhunter", $event);
50     templates2events("/etc/cron.daily/rkhunter", $event);
51     }
52    

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