Skip to content

Commit

Permalink
Merge pull request #257 from nilshamerlinck/dbfilter2
Browse files Browse the repository at this point in the history
Allow to pass DB_FILTER env var on 15.0/16.0 as well
  • Loading branch information
yvaucher authored Oct 19, 2023
2 parents d427a34 + 1e050d1 commit dcf64f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 15.0/templates/odoo.cfg.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ db_name = {{ .Env.DB_NAME }}
db_user = {{ .Env.DB_USER }}
db_password = {{ .Env.DB_PASSWORD }}
db_sslmode = {{ default .Env.DB_SSLMODE "prefer" }}
dbfilter = ^{{ default .Env.DB_NAME "odoodb" }}$
dbfilter = ^{{ default .Env.DB_FILTER .Env.DB_NAME }}$
list_db = {{ default .Env.LIST_DB "False" }}
admin_passwd = {{ default .Env.ADMIN_PASSWD "" }}
db_maxconn = {{ default .Env.DB_MAXCONN "64" }}
Expand Down
2 changes: 1 addition & 1 deletion 16.0/templates/odoo.cfg.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ db_name = {{ .Env.DB_NAME }}
db_user = {{ .Env.DB_USER }}
db_password = {{ .Env.DB_PASSWORD }}
db_sslmode = {{ default .Env.DB_SSLMODE "prefer" }}
dbfilter = ^{{ default .Env.DB_NAME "odoodb" }}$
dbfilter = ^{{ default .Env.DB_FILTER .Env.DB_NAME }}$
list_db = {{ default .Env.LIST_DB "False" }}
admin_passwd = {{ default .Env.ADMIN_PASSWD "" }}
db_maxconn = {{ default .Env.DB_MAXCONN "64" }}
Expand Down

0 comments on commit dcf64f7

Please sign in to comment.