mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
Merge pull request #11 from ricardopadilha/patch-1
Update deploy.py to support sqlite3
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user