From 93a5fd5bb84cb29887de74d23049374c94f5b48a Mon Sep 17 00:00:00 2001 From: ricardopadilha Date: Fri, 27 Sep 2013 11:24:07 +0200 Subject: [PATCH] Update deploy.py to support sqlite3 modoboa-admin.py does not allow giving "sqlite3" as a database type. --- modoboa/core/commands/deploy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modoboa/core/commands/deploy.py b/modoboa/core/commands/deploy.py index 3c9c15107..cd33fde07 100644 --- a/modoboa/core/commands/deploy.py +++ b/modoboa/core/commands/deploy.py @@ -75,8 +75,8 @@ class DeployCommand(Command): """ print "Configuring database connection: %s" % name info = {'conn_name': name, - 'dbtype': raw_input('Database type (mysql or postgres): ')} - if info['dbtype'] not in ['mysql', 'postgres']: + 'dbtype': raw_input('Database type (mysql, postgres or sqlite3): ')} + if info['dbtype'] not in ['mysql', 'postgres', 'sqlite3']: info['dbtype'] = 'mysql' if info['dbtype'] == 'postgres': info['dbtype'] = 'postgresql_psycopg2'