From: Mathieu Goulin Date: Fri, 9 Sep 2011 12:18:11 +0000 (+0000) Subject: Fix list rpc: use mysql host from platal.conf X-Git-Tag: xorg/1.1.3~4 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=5b3001594ec6cbf9e43bba3b89a30d664dbef819;p=platal.git Fix list rpc: use mysql host from platal.conf Signed-off-by: Florent Bruneau --- 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()