Revision 3cba1c06
Added by Frédéric Péters over 11 years ago
wcsinst/wcsinstd/deploy.py | ||
---|---|---|
118 | 118 |
|
119 | 119 |
def make_sql_tables(self, wcs_cfg): |
120 | 120 |
params = [] |
121 |
for param in ('dbname', 'user', 'password', 'host', 'port'):
|
|
121 |
for param in ('database', 'user', 'password', 'host', 'port'):
|
|
122 | 122 |
if wcs_cfg.get('postgresql').get(param): |
123 |
params.append('--' + param) |
|
123 |
if param == 'database': |
|
124 |
params.append('--dbname') |
|
125 |
else: |
|
126 |
params.append('--' + param) |
|
124 | 127 |
params.append(wcs_cfg.get('postgresql').get(param)) |
125 | 128 |
os.system('%s convert-to-sql %s %s' % (app_settings.WCSCTL_SCRIPT, ' '.join(params), self.domain)) |
126 | 129 |
|
Also available in: Unified diff
wcsinstd: fix passing of the database name to wcsctl