Skip to content

Commit

Permalink
opt-in BUILDOUT_SKIP_PG_USER_CHECK #63
Browse files Browse the repository at this point in the history
This new env var enables to skip the postgres user check. This can be handy when linking to some default Postgres containers.
See #63
  • Loading branch information
rvalyi committed Oct 13, 2015
1 parent 449dc8c commit 4ed049f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion anybox/recipe/odoo/runtime/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ def open(self, db=None, with_demo=False):
cr.close()

startup.check_root_user()
startup.check_postgres_user()
if not os.environ.get('BUILDOUT_SKIP_PG_USER_CHECK'):
startup.check_postgres_user()
openerp.netsvc.init_logger()

saved_without_demo = config['without_demo']
Expand Down

0 comments on commit 4ed049f

Please sign in to comment.