/[smecontribs]/rpms/smeserver-crontab_manager/contribs10/smeserver-crontab_manager-2.4-change-panel-link-to-wrapper.patch
ViewVC logotype

Contents of /rpms/smeserver-crontab_manager/contribs10/smeserver-crontab_manager-2.4-change-panel-link-to-wrapper.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Mon Oct 12 14:28:11 2020 UTC (3 years, 6 months ago) by brianr
Branch: MAIN
CVS Tags: smeserver-crontab_manager-2_4-5_el7_sme, smeserver-crontab_manager-2_4-6_el7_sme, smeserver-crontab_manager-2_4-4_el7_sme, smeserver-crontab_manager-2_4-7_el7_sme, HEAD
* Sun Oct 11 2020 Brian Read <brianr@bjsystems.co.uk> 2.4-4.sme
- Initial import to SME10 tree [SME: 11027]
- Change link to panel to reference wrapper

1 diff -urN smeserver-crontab_manager-2.4.old/createlinks smeserver-crontab_manager-2.4/createlinks
2 --- smeserver-crontab_manager-2.4.old/createlinks 2005-08-27 13:30:43.000000000 +0100
3 +++ smeserver-crontab_manager-2.4/createlinks 2020-10-12 15:19:18.774943342 +0100
4 @@ -14,6 +14,15 @@
5 "/cgi-bin/$function: $!";
6 }
7
8 +sub safe_symlink {
9 + my ($from, $to) = @_;
10 + use File::Basename;
11 + use File::Path;
12 + mkpath(dirname($to));
13 + unlink($to);
14 + symlink($from, $to) or die "Can't create symlink from $from to $to: $!";
15 +}
16 +
17 sub event_link
18 {
19 my ($action, $event, $level) = @_;
20 @@ -49,3 +58,4 @@
21 #event_link("action1", $event, "55");
22 #event_link("action2", $event, "90");
23
24 +safe_symlink("/etc/e-smith/web/functions/wrapper","root/etc/e-smith/web/panels/manager/cgi-bin/cronmanager");

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