No way to set master password via environment
There should be a way to set master password for database management. This is trivial setting which cannot be done via command line variable and will require to copy and edit configuration file for every installation.
Alternative docker solution, which has such option: https://github.com/it-projects-llc/install-odoo
-e ODOO_MASTER_PASS=123abcd -- specify master password (one, you will use on Database Manager page). If this variable is not specified, system will generate new password on each start.
-e RESET_ADMIN_PASSWORDS_ON_STARTUP=yes -- will reset admin password at all databases to $ODOO_MASTER_PASS (manual or generated value)
I have a similar problem passing the master password and other values by environtment variables. Config file does no take the correct value.
You could mount your own odoo.conf with a master password set like:
--mount type=bind,src=/somwherei/odoo.conf,dst=/etc/odoo/odoo.conf
None of the solutions provided by @yelizariev or @d-fence worked for my needs:
- I would like to have a completely unattended install:
"Cmd": [
"--",
"-d",
"erp",
"-i",
"base,crm,sale_management",
"--no-database-list",
"--without-demo",
"all"
],
- I was able to get it, but if I restart docker the
adminusername password goes back toadminas well
I tried several combinations, providing `-c /etc/odoo/odoo.conf' to cmd but no dice.
@justinasjaronis is this still an issue for you? Can you confirm this issue against 17?