/[smecontribs]/rpms/smeserver-print-monitor/contribs10/smeserver-print-monitor-0.0.7-Add-Update-event-to-createlinks.patch
ViewVC logotype

Contents of /rpms/smeserver-print-monitor/contribs10/smeserver-print-monitor-0.0.7-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)
Sun Mar 28 11:49:30 2021 UTC (3 years, 7 months ago) by brianr
Branch: MAIN
CVS Tags: smeserver-print-monitor-0_0_7-8_el7_sme, smeserver-print-monitor-0_0_7-5_el7_sme, smeserver-print-monitor-0_0_7-6_el7_sme, smeserver-print-monitor-0_0_7-7_el7_sme, HEAD
* Sun Mar 28 2021 Brian Read <brianr@bjsystems.co.uk> 0.0.7-5.sme
- Add Update event to createlinks [SME: 11067]

1 diff -urN smeserver-print-monitor-0.0.7.old/createlinks smeserver-print-monitor-0.0.7/createlinks
2 --- smeserver-print-monitor-0.0.7.old/createlinks 2009-09-18 13:49:30.000000000 +0100
3 +++ smeserver-print-monitor-0.0.7/createlinks 2021-03-28 12:42:47.387517725 +0100
4 @@ -1,11 +1,32 @@
5 #!/usr/bin/perl -w
6 +use esmith::Build::CreateLinks qw(:all);
7 +# our event specific for updating with yum without reboot
8 +$event = 'smeserver-print-monitor-update';
9 +#add here the path to your templates needed to expand
10 +#see the /etc/systemd/system-preset/49-koozali.preset should be present for systemd integration on all you yum update event
11 +
12 +foreach my $file (qw(
13 + /etc/systemd/system-preset/49-koozali.preset
14 + /etc/httpd/conf/httpd.conf
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/httpd-e-smith");
26 +#and Server Manager panel link
27 +#panel_link('somefunction', 'manager');
28 +
29 +
30 # This script creates the symlinks needed by this RPM
31 # Specific support exists to create symlinks within e-smith web "panels"
32 # and for links from named "events" directories into the "actions" directory
33
34 -use esmith::Build::CreateLinks qw(:all);
35 -my $event;
36 -
37 panel_link("LPRng", 'manager');
38
39 safe_symlink("../../cgi-bin/lpinfo", "root/var/www/html/LPRng/admin/cgi-bin/lpinfo");

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