[icinga-checkins] icinga.org: icinga-core/fholzer/core: bugfix user credentials input

git at icinga.org git at icinga.org
Mon Apr 23 12:22:34 CEST 2012


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

Author: Franz Holzer <office at frankstar.at>
Date:   Mon Apr 23 12:19:51 2012 +0200

bugfix user credentials input

---

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

diff --git a/tools/icinga_verification.pl b/tools/icinga_verification.pl
index b35f5d9..fe0eb46 100644
--- a/tools/icinga_verification.pl
+++ b/tools/icinga_verification.pl
@@ -117,11 +117,12 @@ if ( !$mysqlcheck ) {
     if ( !$dbh_cfg_error ) {
 	    print "ido2db.cfg Mysql Connection Test OK!\n";
         $dbh_cfg->disconnect();
-    } else {
-	
-		print STDERR "Values in '< >' are default parameters! Confirm with [Enter]\n";
+    } else {        
+		print color("red"), "ido2db.cfg - MySQL Connect FAILED. Start Config Script", color("reset");
+		print "\n";
+		print STDERR "\nValues in '< >' are default parameters! Confirm with [Enter]\n";
 		print STDERR "\nEnter your MYSQL Server <localhost>: ";
-		$$mysqlserver_cfg = <STDIN>;
+		$mysqlserver_cfg = <STDIN>;
 		chomp($mysqlserver_cfg);
 		if ( !$mysqlserver_cfg ) {
 		$mysqlserver_cfg = 'localhost';





More information about the icinga-checkins mailing list