Skip to content

Commit

Permalink
[FIX] Minor typos in help text
Browse files Browse the repository at this point in the history
  • Loading branch information
ruiztulio committed Oct 18, 2024
1 parent b4dbb2e commit 12f00e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions utils/odoo.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func SetupWorker(config *ini.File, containerType string) {
}
}

// UpdateFromVars will update the odoo configuration from env vars wich should start with ODOORC_ prefix, if the exists
// 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
Expand All @@ -167,15 +167,15 @@ func UpdateFromVars(config *ini.File, odooVars map[string]string, appendNew bool
break
}
}
// The key does not exist and we want to force append, so we add it into the options section
// The key does not exist, and we want to force append, so we add it into the options section
if !updated && appendNew {
config.Section("options").Key(k).SetValue(v)
}
}
}

// SetDefaults takes care of important defaults:
// - Won't allow admin as default super user password, a random string is generated
// - Won't allow admin as default superuser password, a random string is generated
// - Won't allow to change the default ports because inside the container is not needed and will mess with the external
// - Disable logrotate since supervisor will handle that
func SetDefaults(config *ini.File) {
Expand Down
2 changes: 1 addition & 1 deletion utils/supervisor.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func UpdateAutostart(autostart bool, confPath string) error {
return nil
}

// setAutostart will enable the autostart in a particular file, but won't touch the default section neither supervisor one
// setAutostart will enable autostart in a particular file, but won't touch the default section neither supervisor one
// only in the services section
func setAutostart(content []byte, w io.Writer) error {
cfg, err := ini.Load(content)
Expand Down

0 comments on commit 12f00e0

Please sign in to comment.