Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IMP] support customization of the custom conf path. #512

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ subsequently run.
Files here will be environment-variable-expanded and concatenated in
`/opt/odoo/auto/odoo.conf` in the entrypoint.

You can use a different custom directory to concatenate the configuration by using the
`CUSTOM_CONF_DIR` environment variable in the odoo service of the compose specific file.

#### `/opt/odoo/custom/ssh`

It must follow the same structure as a standard `~/.ssh` directory, including `config`
Expand Down
3 changes: 2 additions & 1 deletion bin/config-generate
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ except ImportError:

ODOO_VERSION = os.environ.get("ODOO_VERSION")
TARGET_FILE = os.environ.get("ODOO_RC", "/opt/odoo/auto/odoo.conf")
CONFIG_DIRS = ("/opt/odoo/common/conf.d", "/opt/odoo/custom/conf.d")
CUSTOM_CONF_DIR = os.environ.get("CUSTOM_CONF_DIR", "/opt/odoo/custom/conf.d")
CONFIG_DIRS = ("/opt/odoo/common/conf.d", CUSTOM_CONF_DIR)
CONFIG_FILES = []

# Read all configuraiton files found in those folders
Expand Down