/[smeserver]/rpms/e-smith-viewlogfiles/sme10/e-smith-viewlogfiles-2.6.0-use_createlinks.patch
ViewVC logotype

Annotation of /rpms/e-smith-viewlogfiles/sme10/e-smith-viewlogfiles-2.6.0-use_createlinks.patch

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


Revision 1.1 - (hide annotations) (download)
Thu May 12 22:15:25 2016 UTC (8 years ago) by vip-ire
Branch: MAIN
CVS Tags: e-smith-viewlogfiles-2_6_0-4_el7_sme, e-smith-viewlogfiles-2_6_0-3_el7_sme, HEAD
Add missing patch

1 vip-ire 1.1 diff -Nur e-smith-viewlogfiles-2.6.0/createlinks e-smith-viewlogfiles-2.6.0_bz9393/createlinks
2     --- e-smith-viewlogfiles-2.6.0/createlinks 2002-04-16 17:21:40.000000000 +0200
3     +++ e-smith-viewlogfiles-2.6.0_bz9393/createlinks 2016-05-13 00:13:52.350162133 +0200
4     @@ -1,22 +1,5 @@
5     #!/usr/bin/perl -w
6    
7     -sub safe_symlink {
8     - my ($from, $to) = @_;
9     - use File::Basename;
10     - use File::Path;
11     - mkpath(dirname($to));
12     - unlink($to);
13     - symlink($from, $to) or die "Can't create symlink from $from to $to: $!";
14     -}
15     -
16     -sub panel_link
17     -{
18     - my ($function, $panel) = @_;
19     -
20     - my $cgibin = "root/etc/e-smith/web/panels/$panel/cgi-bin";
21     -
22     - safe_symlink("../../../functions/$function",
23     - "$cgibin/$function")
24     -}
25     +use esmith::Build::CreateLinks qw(:all);
26    
27     panel_link("viewlogfiles", "manager");

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