Lines 1-12
Link Here
|
1 |
--- install.pl.orig 2010-09-09 09:56:05.000000000 +0400 |
1 |
--- install.pl.orig 2012-01-23 20:36:02.000000000 +0400 |
2 |
+++ install.pl 2011-08-13 16:39:01.000000000 +0400 |
2 |
+++ install.pl 2012-11-12 15:52:05.000000000 +0400 |
3 |
@@ -1,4 +1,4 @@ |
3 |
@@ -1,4 +1,4 @@ |
4 |
-#!/usr/bin/perl |
4 |
-#!/usr/bin/perl |
5 |
+#!%%PERL%% -I %%PREFIX%%/libexec/nfsen |
5 |
+#!%%PERL%% -I %%PREFIX%%/libexec/nfsen |
6 |
# |
6 |
# |
7 |
# |
7 |
# |
8 |
# Copyright (c) 2004, SWITCH - Teleinformatikdienste fuer Lehre und Forschung |
8 |
# Copyright (c) 2004, SWITCH - Teleinformatikdienste fuer Lehre und Forschung |
9 |
@@ -85,33 +85,7 @@ |
9 |
@@ -88,33 +88,7 @@ |
10 |
# Get Perl |
10 |
# Get Perl |
11 |
sub GetPerl { |
11 |
sub GetPerl { |
12 |
|
12 |
|
Lines 41-67
Link Here
|
41 |
|
41 |
|
42 |
} # End of GetPerl |
42 |
} # End of GetPerl |
43 |
|
43 |
|
44 |
@@ -200,11 +174,8 @@ |
|
|
45 |
} |
46 |
|
47 |
my @out = `$NfConf::PREFIX/nfdump -V`; |
48 |
- if ( scalar @out != 2 ) { |
49 |
- die "Error getting nfdump version"; |
50 |
- } |
51 |
chomp $out[0]; |
52 |
- my ($major, $minor) = $out[0] =~ /Version:\s(\d)\.(\d)\s/; |
53 |
+ my ($major, $minor) = $out[0] =~ /Version:\s(\d)\.(\d)[\.\s]/; |
54 |
if ( defined $major && defined $minor) { |
55 |
if ( $major >= 1 && $minor >= 6 ) { |
56 |
print "Found $out[0]\n"; |
57 |
@@ -212,7 +183,9 @@ |
58 |
print "out[0]\n"; |
59 |
die "Nfdump version not compatible with current NfSen version.\n"; |
60 |
} |
61 |
- } |
62 |
+ } else { |
63 |
+ die "Error getting nfdump version"; |
64 |
+ } |
65 |
|
66 |
my $www_gid = getgrnam($NfConf::WWWGROUP) || |
67 |
die "WWW group '$NfConf::WWWGROUP' not found on this system\n"; |