/[smecontribs]/rpms/smeserver-tw-logonscript/contribs10/smeserver-tw-logonscript-1.5-Add-Update-event-to-createlinks.patch
ViewVC logotype

Annotation of /rpms/smeserver-tw-logonscript/contribs10/smeserver-tw-logonscript-1.5-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 10:14:18 2021 UTC (3 years, 8 months ago) by brianr
Branch: MAIN
CVS Tags: smeserver-tw-logonscript-1_5-9_el7_sme, smeserver-tw-logonscript-1_5-11_el7_sme, smeserver-tw-logonscript-1_5-10_el7_sme, smeserver-tw-logonscript-1_5-12_el7_sme, smeserver-tw-logonscript-1_5-7_el7_sme, smeserver-tw-logonscript-1_5-6_el7_sme, smeserver-tw-logonscript-1_5-8_el7_sme, HEAD
* Mon Mar 29 2021 Brian Read <brianr@bjsystems.co.uk> 1.5-6.sme
- Add Update event to createlinks [SME: 11038]

1 brianr 1.1 diff -urN smeserver-tw-logonscript-1.5.old/createlinks smeserver-tw-logonscript-1.5/createlinks
2     --- smeserver-tw-logonscript-1.5.old/createlinks 2015-09-08 15:18:48.000000000 +0100
3     +++ smeserver-tw-logonscript-1.5/createlinks 2021-03-29 11:00:10.493377369 +0100
4     @@ -1,7 +1,27 @@
5     #!/usr/bin/perl -w
6     -
7     use esmith::Build::CreateLinks qw(:all);
8     -use File::Basename;
9     +# our event specific for updating with yum without reboot
10     +$event = 'smeserver-tw-logonscript-update';
11     +#add here the path to your templates needed to expand
12     +#see the /etc/systemd/system-preset/49-koozali.preset should be present for systemd integration on all you yum update event
13    
14     -symlink("/etc/e-smith/web/functions/ibayletters","root/etc/e-smith/web/panels/manager/cgi-bin/ibayletters");
15     +foreach my $file (qw(
16     + /etc/systemd/system-preset/49-koozali.preset
17     + /home/e-smith/files/samba/netlogon/netlogon.bat
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/service);
29     +#and Server Manager panel link
30     +panel_link('ibayletters', 'manager');
31     +
32     +use File::Basename;
33     +#symlink("/etc/e-smith/web/functions/ibayletters","root/etc/e-smith/web/panels/manager/cgi-bin/ibayletters");
34     templates2events("/home/e-smith/files/samba/netlogon/netlogon.bat", qw(workgroup-update bootstrap-console-save));

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