Update deploy.py to support sqlite3

modoboa-admin.py does not allow giving "sqlite3" as a database type.
This commit is contained in:
ricardopadilha
2013-09-27 11:24:07 +02:00
parent cb7267c66e
commit 93a5fd5bb8
+2 -2
View File
@@ -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'