From d8535cdddacf8b3856e1bffe1fd69ab708f34ff4 Mon Sep 17 00:00:00 2001 From: "rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Mon, 11 Apr 2005 20:09:26 +0000 Subject: BUILD : 1.7.8 (659) BUGS : N/A NOTES : dbgen script will now accept a blank sql pass if you tell it too... git-svn-id: svn://svn.anope.org/anope/trunk@659 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@507 5417fbe8-f217-4b02-8779-1006273d7864 --- src/bin/mydbgen | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/bin/mydbgen') diff --git a/src/bin/mydbgen b/src/bin/mydbgen index a251b9512..d19042f56 100755 --- a/src/bin/mydbgen +++ b/src/bin/mydbgen @@ -65,12 +65,14 @@ echo "What is your MySQL password?" echo $n "-> $c" stty -echo echonl read cc +SQLPASS_PREFIX="" if [ ! -z "$cc" ] ; then + SQLPASS_PREFIX="-p" SQLPASS=$cc fi stty $OLD_TTY -mysqlshow -h$SQLHOST -u$SQLUSER >/dev/null 2>&1 +mysqlshow -h$SQLHOST -u$SQLUSER $SQLPASS_PREFIX$SQLPASS >/dev/null 2>&1 if test "$?" = "1" ; then echo "Error: Unable to login, verify your login/password and hostname" exit -- cgit