[icinga-checkins] icinga.org: icinga-core/fholzer/core: Fix indenting of mysql block

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


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

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

Fix indenting of mysql block

---

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

diff --git a/tools/icinga_verification.pl b/tools/icinga_verification.pl
index b2231ec..745bebf 100644
--- a/tools/icinga_verification.pl
+++ b/tools/icinga_verification.pl
@@ -38,37 +38,37 @@ if( $oscheck eq 'MSWin32' ){
 	print "We are on Windows, will quit now!";
 	exit 1;
 }
+
 # MySQL Config if MySQL is used
 my $mysqlcheck = qx(which mysql);
 my ( $mysqldb, $mysqlserver, $mysqluser, $mysqlpw ) = '';
 
 if (!$mysqlcheck ){
 	print "no Mysql Server Found, skip Config";
-}
-else{
+} else {
 
-$mysqldb = "icinga";
-print "\nMysql Found! - start Config Script\n";
-print "Values in '< >' are standarts! Confirm with [Enter]\n";
-print "\nEnter your MYSQL Server <localhost>: ";
-$mysqlserver = <STDIN>;
-chomp($mysqlserver);
-if (!$mysqlserver){
-	$mysqlserver = 'localhost';
-}
+	$mysqldb = "icinga";
+	print "\nMysql Found! - start Config Script\n";
+	print "Values in '< >' are standarts! Confirm with [Enter]\n";
+	print "\nEnter your MYSQL Server <localhost>: ";
+	$mysqlserver = <STDIN>;
+	chomp($mysqlserver);
+	if (!$mysqlserver){
+		$mysqlserver = 'localhost';
+	}
 
-print "Enter your MYSQL User <root>: ";
-$mysqluser = <STDIN>;
-chomp($mysqluser);
-if (!$mysqluser){
-	$mysqluser = 'root';
-}
+	print "Enter your MYSQL User <root>: ";
+	$mysqluser = <STDIN>;
+	chomp($mysqluser);
+	if (!$mysqluser){
+		$mysqluser = 'root';
+	}
 
-system('stty','-echo');
-print "Enter your MYSQL Password: ";
-$mysqlpw = <STDIN>;
-chomp($mysqlpw);
-system('stty','echo');
+	system('stty','-echo');
+	print "Enter your MYSQL Password: ";
+	$mysqlpw = <STDIN>;
+	chomp($mysqlpw);
+	system('stty','echo');
 }
 
 #Icinga Base Set





More information about the icinga-checkins mailing list