[icinga-checkins] icinga.org: icinga-core/dev/ido: idoutils: fix wrong script parameter #2358

git at icinga.org git at icinga.org
Mon Apr 2 16:44:00 CEST 2012


Module: icinga-core
Branch: dev/ido
Commit: 50063e7d4f4b462e09fd5c5c7b26d0c45b649efe
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=50063e7d4f4b462e09fd5c5c7b26d0c45b649efe

Author: Thomas Dressler <tdressler at tdressler.net>
Date:   Sat Mar  3 20:56:32 2012 +0100

idoutils: fix wrong script parameter #2358
refs #2358

---

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

diff --git a/module/idoutils/db/scripts/create_mysqldb.sh b/module/idoutils/db/scripts/create_mysqldb.sh
index 44ae273..a4e03ba 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 [ -s "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