[icinga-checkins] icinga.org: icinga-core/next: idoutils: fix ignoring mysql password in create_mysqldb.sh #2994

git at icinga.org git at icinga.org
Mon Aug 20 15:29:09 CEST 2012


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

Author: Michael Friedrich <michael.friedrich at univie.ac.at>
Date:   Mon Aug 20 14:51:49 2012 +0200

idoutils: fix ignoring mysql password in create_mysqldb.sh #2994

thx Tim Hardeck
fixes #2994

---

 Changelog                                    |    1 +
 module/idoutils/db/scripts/create_mysqldb.sh |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/Changelog b/Changelog
index 8674cf9..c87c178 100644
--- a/Changelog
+++ b/Changelog
@@ -62,6 +62,7 @@ FIXES
 * core: fix deleting too old check result files (Andreas Ericsson) #2951 - MF
 
 * idoutils: set result handle explicitely to NULL after dbi_result_free() to prevent memory free'ing corruption #2612 - MF/GB
+* idoutils: fix ignoring mysql password in create_mysqldb.sh #2994 - MF
 
 CHANGES
 
diff --git a/module/idoutils/db/scripts/create_mysqldb.sh b/module/idoutils/db/scripts/create_mysqldb.sh
index 75f5c02..fbb338f 100755
--- a/module/idoutils/db/scripts/create_mysqldb.sh
+++ b/module/idoutils/db/scripts/create_mysqldb.sh
@@ -25,7 +25,7 @@ cd ../mysql
 
 echo "Enter password for mysql user '$DBADMIN' or <enter> if none"
 read ROOTPASS
-if [ -n "ROOTPASS" ];then
+if [ -n "$ROOTPASS" ];then
 	P=-p$ROOTPASS
 fi
 echo "drop existing DB $DB and user $DBUSER..."





More information about the icinga-checkins mailing list