From 4ed049fb05993d3169d2f6eb6efbd46dbdf0021a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Valyi?= Date: Mon, 12 Oct 2015 21:56:07 -0300 Subject: [PATCH] opt-in BUILDOUT_SKIP_PG_USER_CHECK #63 This new env var enables to skip the postgres user check. This can be handy when linking to some default Postgres containers. See https://github.com/anybox/anybox.recipe.odoo/issues/63 --- anybox/recipe/odoo/runtime/session.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/anybox/recipe/odoo/runtime/session.py b/anybox/recipe/odoo/runtime/session.py index 9161e8fa..759207bb 100644 --- a/anybox/recipe/odoo/runtime/session.py +++ b/anybox/recipe/odoo/runtime/session.py @@ -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']