[icinga-checkins] icinga.org: icinga-core/fholzer/core: I am a stupid *censored* today. really push the right paths into path
git at icinga.org
git at icinga.org
Mon Apr 23 14:12:18 CEST 2012
Module: icinga-core
Branch: fholzer/core
Commit: 964677aeae36e031340044ed3bc012189f04691a
URL: https://git.icinga.org/?p=icinga-core.git;a=commit;h=964677aeae36e031340044ed3bc012189f04691a
Author: Alexander Wirt <formorer at grml.org>
Date: Mon Apr 23 13:56:25 2012 +0200
I am a stupid *censored* today. really push the right paths into path
---
tools/icinga_verification.pl | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/tools/icinga_verification.pl b/tools/icinga_verification.pl
index c3f16c4..4904c30 100644
--- a/tools/icinga_verification.pl
+++ b/tools/icinga_verification.pl
@@ -361,9 +361,8 @@ sub get_key_from_ini ($$) {
sub which (@) {
my @binaries = @_;
my @path = reverse( split( ':', $PATH ));
- my $icinga_path = "$icinga_base/../bin";
- my $icinga_path = "$icinga_base/../sbin";
- push @path, $icinga_path;
+ push @path "$icinga_base/../bin";
+ push @path "$icinga_base/../sbin";
print "looking for binaries in ", join(",", @path), "\n" if $verbose;
foreach my $binary (@binaries) {
More information about the icinga-checkins
mailing list