diff options
author | rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2005-04-11 20:01:31 +0000 |
---|---|---|
committer | rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2005-04-11 20:01:31 +0000 |
commit | 6f25f8bbce7496372c4fb3d2c726451819c3a2d6 (patch) | |
tree | 52482110e1834c45d37b96cb00950b785eca1f8d /src | |
parent | 4a051a7fe1367874d1dca2206ade5f6f1f7256d6 (diff) |
BUILD : 1.7.8 (658) BUGS : 658 NOTES : Applied qa patch for bug 658
git-svn-id: svn://svn.anope.org/anope/trunk@658 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@506 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rwxr-xr-x | src/bin/mydbgen | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/bin/mydbgen b/src/bin/mydbgen index 77eb22aac..a251b9512 100755 --- a/src/bin/mydbgen +++ b/src/bin/mydbgen @@ -70,7 +70,7 @@ if [ ! -z "$cc" ] ; then fi stty $OLD_TTY -mysqlshow -h$SQLHOST -u$SQLUSER -p$SQLPASS >/dev/null 2>&1 +mysqlshow -h$SQLHOST -u$SQLUSER >/dev/null 2>&1 if test "$?" = "1" ; then echo "Error: Unable to login, verify your login/password and hostname" exit @@ -86,16 +86,16 @@ while [ -z "$SQLDB" ] ; do fi done -MYSQLDUMP="mysqldump -h$SQLHOST -u$SQLUSER -p$SQLPASS $SQLDB" -MYSQLSHOW="mysqlshow -h$SQLHOST -u$SQLUSER -p$SQLPASS $SQLDB" -MYSQL="mysql -h$SQLHOST -u$SQLUSER -p$SQLPASS $SQLDB" +MYSQLDUMP="mysqldump -h$SQLHOST -u$SQLUSER $SQLDB" +MYSQLSHOW="mysqlshow -h$SQLHOST -u$SQLUSER $SQLDB" +MYSQL="mysql -h$SQLHOST -u$SQLUSER $SQLDB" echo "" $MYSQLSHOW | grep -q $SQLDB if test "$?" = "1" ; then echo -n "Unable to find databse, creating... " - mysql -h$SQLHOST -u$SQLUSER -p$SQLPASS -Bs -e "create database $SQLDB" >/dev/null 2>&1 + mysql -h$SQLHOST -u$SQLUSER -Bs -e "create database $SQLDB" >/dev/null 2>&1 if test "$?" = "0" ; then echo "done!" else @@ -120,7 +120,7 @@ else if test "$?" = "1" ; then echo -n "Unable to find Anope info table, creating... " echo "CREATE TABLE anope_info (version int, date datetime) TYPE=MyISAM" > $TFILE - mysql -h$SQLHOST -u$SQLUSER -p$SQLPASS $SQLDB < $TFILE >/dev/null 2>&1 + mysql -h$SQLHOST -u$SQLUSER $SQLDB < $TFILE >/dev/null 2>&1 if test "$?" = "0" ; then echo "done!" @@ -140,7 +140,7 @@ else if test "$?" = "1" ; then echo -n "Unable to find anope_cs_info.memomax, altering... " echo "ALTER TABLE anope_cs_info ADD memomax smallint unsigned NOT NULL default 0" > $TFILE - mysql -h$SQLHOST -u$SQLUSER -p$SQLPASS $SQLDB < $TFILE >/dev/null 2>&1 + mysql -h$SQLHOST -u$SQLUSER $SQLDB < $TFILE >/dev/null 2>&1 if test "$?" = "0" ; then echo "done!" @@ -155,7 +155,7 @@ else if test "$?" = "1" ; then echo -n "Unable to find anope_cs_info.ttb, altering... " echo "ALTER TABLE anope_cs_info ADD ttb smallint NOT NULL default 0" > $TFILE - mysql -h$SQLHOST -u$SQLUSER -p$SQLPASS $SQLDB < $TFILE >/dev/null 2>&1 + mysql -h$SQLHOST -u$SQLUSER $SQLDB < $TFILE >/dev/null 2>&1 if test "$?" = "0" ; then echo "done!" @@ -168,12 +168,12 @@ else # Introduced on Anope 1.7.7 -> status smallint to inst unsigned. echo "Blindly altering status for bigger capacity... " echo "ALTER TABLE anope_ns_alias CHANGE status status int(11) unsigned NOT NULL default 0" > $TFILE - mysql -h$SQLHOST -u$SQLUSER -p$SQLPASS $SQLDB < $TFILE >/dev/null 2>&1 + mysql -h$SQLHOST -u$SQLUSER $SQLDB < $TFILE >/dev/null 2>&1 # Introduced on Anope 1.7.8 (620) proxy scanner removed. echo "Removing proxy scanner cache... " echo "DROP TABLE IF EXISTS anope_os_cache" > $TFILE - mysql -h$SQLHOST -u$SQLUSER -p$SQLPASS $SQLDB < $TFILE >/dev/null 2>&1 + mysql -h$SQLHOST -u$SQLUSER $SQLDB < $TFILE >/dev/null 2>&1 echo "done!" |