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

git at icinga.org git at icinga.org
Mon Aug 20 15:33:36 CEST 2012


Module: icinga-core
Branch: r1.7
Commit: 16da437d3a54574ac3cae5826d830fac1a690296
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=16da437d3a54574ac3cae5826d830fac1a690296

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

Conflicts:

	Changelog

---

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

diff --git a/Changelog b/Changelog
index e02d2ef..1142b8b 100644
--- a/Changelog
+++ b/Changelog
@@ -22,6 +22,7 @@ FIXES
 * core: fix deleting too old check result files (Andreas Ericsson) #2951 - MF
 
 * idoutils: fix icinga mysql db creation script grants access to all dbs #2917 - MF
+* 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