Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
opt-in BUILDOUT_SKIP_PG_USER_CHECK anybox#63
This new env var enables to skip the postgres user check. This can be handy when linking to some default Postgres containers. See anybox#63
- Loading branch information
4ed049f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, if I understand well, any non empty value of the environment variable, including "False" will have the check be skipped.
Maybe we should mention this in the documentation ? There's no goot place for such runtime behaviour, I think, so by default, I'd say at the end of http://docs.anybox.fr/anybox.recipe.odoo/current/scripts.html#startup-scripts so that at least a search on check_postgres would return something.
4ed049f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, I'll document that. You understood well. Also I propose to name the env var flag simply: ENABLE_POSTGRES_USER that would avoid a double negation.
I wondered if the var had to be prefixed by something special to show it belongs to this recipe. But a counter argument is that without prefix it could also be usable in Odoo one day. So I don't know. I propose ENABLE_POSTGRES_USER. Any better idea?
4ed049f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 for the naming
4ed049f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and thank you for the contribution, of course !