From 249f24658e62dc26cfd4ff8e6aee658580cc5d34 Mon Sep 17 00:00:00 2001 From: Steven Mondji-Lerider Date: Wed, 9 Jan 2013 15:18:27 +0000 Subject: [PATCH] Modifying mysql.sh add support of installation on a remote sql server --- install/mysql.sh | 75 +++++++++++++++++++++++++++++------------------- 1 file changed, 45 insertions(+), 30 deletions(-) diff --git a/install/mysql.sh b/install/mysql.sh index 97d7d9f5..3b9f9a19 100755 --- a/install/mysql.sh +++ b/install/mysql.sh @@ -59,41 +59,56 @@ CREATE DATABASE IF NOT EXISTS $database; " grant_mail="GRANT ALL ON $database.dovecot_view TO '$alternc_mail_user'@'${MYSQL_CLIENT}' IDENTIFIED BY '$alternc_mail_password';" grant_mail=$grant_mail"GRANT SELECT ON $database.* TO '$alternc_mail_user'@'${MYSQL_CLIENT}' IDENTIFIED BY '$alternc_mail_password';" -echo -n "Trying debian.cnf: " -mysql="/usr/bin/mysql --defaults-file=/etc/mysql/debian.cnf" -# If this call fail, we may be connected to a mysql-server version 5.0. -# In that case, change mysql parameters and retry. Use root / nopassword. -if ! $mysql <