[icinga-checkins] icinga.org: icinga-core/fholzer/core: Exit with an error code if window is detected

git at icinga.org git at icinga.org
Fri Apr 20 20:42:05 CEST 2012


Module: icinga-core
Branch: fholzer/core
Commit: 64075eb3e4e35f982e225a7439c9c3ce50a6f295
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=64075eb3e4e35f982e225a7439c9c3ce50a6f295

Author: Alexander Wirt <formorer at grml.org>
Date:   Fri Apr 20 16:11:12 2012 +0200

Exit with an error code if window is detected

---

 tools/icinga_verification.pl |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/tools/icinga_verification.pl b/tools/icinga_verification.pl
index 904fb06..b2231ec 100644
--- a/tools/icinga_verification.pl
+++ b/tools/icinga_verification.pl
@@ -36,14 +36,11 @@ use Env qw (LANG);
 my $oscheck = $^O;
 if( $oscheck eq 'MSWin32' ){
 	print "We are on Windows, will quit now!";
-	exit;
+	exit 1;
 }
 # MySQL Config if MySQL is used
 my $mysqlcheck = qx(which mysql);
 my ( $mysqldb, $mysqlserver, $mysqluser, $mysqlpw ) = '';
-my $mysqlserver = '';
-my $mysqluser = '';
-my $mysqlpw = '';
 
 if (!$mysqlcheck ){
 	print "no Mysql Server Found, skip Config";





More information about the icinga-checkins mailing list