Skip to content

Commit

Permalink
[FIX] Remove references to the old Odoo configuration file
Browse files Browse the repository at this point in the history
  • Loading branch information
ruiztulio committed Dec 5, 2024
1 parent 9175bd9 commit 40f8973
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ as the given user.
The command must be between single quotes:
# /entrypoint run --user odoo '/home/odoo/instance/odoo/odoo-bin -c /home/odoo/.openerp_serverrc -u all --stop-after-init'
# /entrypoint run --user odoo '/home/odoo/instance/odoo/odoo-bin -c /home/odoo/.odoorc -u all --stop-after-init'
`,
Run: func(cmd *cobra.Command, args []string) {
log.Infof("Setting up Odoo")
Expand Down
3 changes: 1 addition & 2 deletions utils/odoo.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,7 @@ func SetupWorker(config *ini.File, containerType, version string) {
// UpdateFromVars will update the odoo configuration from env vars which should start with ODOORC_ prefix, if the exists
// the value will be updated else the parameter will be added to the 'options' section only when appendNew == true,
// which is the default for Odoo.
// If you wish to add it to another section add the desired section to '/external_files/openerp_serverrc' or add
// the file with only that section to '/external_files/odoocfg'
// If you wish to add it to another section, add a file with only that section to the folder '/external_files/odoocfg'
func UpdateFromVars(config *ini.File, odooVars map[string]string, appendNew bool) {
sections := config.Sections()
for k, v := range odooVars {
Expand Down

0 comments on commit 40f8973

Please sign in to comment.