From 5b3001594ec6cbf9e43bba3b89a30d664dbef819 Mon Sep 17 00:00:00 2001 From: Mathieu Goulin Date: Fri, 9 Sep 2011 12:18:11 +0000 Subject: [PATCH] Fix list rpc: use mysql host from platal.conf Signed-off-by: Florent Bruneau --- bin/lists.rpc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/lists.rpc.py b/bin/lists.rpc.py index 843f7c0..61aac8f 100755 --- a/bin/lists.rpc.py +++ b/bin/lists.rpc.py @@ -69,6 +69,7 @@ def get_config(sec, val, default=None): MYSQL_USER = get_config('Core', 'dbuser') MYSQL_PASS = get_config('Core', 'dbpwd') +MYSQL_HOST = get_config('Core', 'dbhost') MYSQL_DB = get_config('Core', 'dbdb') PLATAL_DOMAIN = get_config('Mail', 'domain') @@ -167,7 +168,7 @@ def connectDB(): db=MYSQL_DB, user=MYSQL_USER, passwd=MYSQL_PASS, - unix_socket='/var/run/mysqld/mysqld.sock') + host=MYSQL_HOST) db.ping() db.autocommit(True) return db.cursor() -- 2.1.4