Skip to content
Snippets Groups Projects
Commit 905fa70d2e27 authored by Vincent Hatakeyama's avatar Vincent Hatakeyama
Browse files

:pencil: when starting a postgresql docker, use default db user and password if none provided

parent 2c3b2dfcafdd
No related branches found
No related tags found
No related merge requests found
......@@ -203,10 +203,6 @@
if not odoo_db_user:
if c.has_option('options', 'db_user'):
odoo_db_user = c.get('options', 'db_user')
elif start_postgresql:
odoo_db_user = 'odoo'
else:
_logger.warning("No database user found or given")
if not odoo_db_password:
if c.has_option('options', 'db_password'):
odoo_db_password = c.get('options', 'db_password')
......@@ -210,10 +206,6 @@
if not odoo_db_password:
if c.has_option('options', 'db_password'):
odoo_db_password = c.get('options', 'db_password')
elif start_postgresql:
odoo_db_password = 'odoo'
else:
_logger.warning("No database password found or given")
if (
c.has_option('options', 'unaccent') and
c.getboolean('options', 'unaccent')
......@@ -223,6 +215,17 @@
_logger.debug('No sample configuration %s', sample_conf)
extensions.append('unaccent')
if not odoo_db_user:
if start_postgresql:
odoo_db_user = 'odoo'
else:
_logger.warning("No database user found or given")
if not odoo_db_password:
if start_postgresql:
odoo_db_password = 'odoo'
else:
_logger.warning("No database password found or given")
# Do stuff
if nmspc.docker:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment