mirror of
https://github.com/anope/anope.git
synced 2026-07-08 13:43:14 +02:00
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
This commit is contained in:
parent
6f25f8bbce
commit
d8535cddda
+3
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user