docker icon indicating copy to clipboard operation
docker copied to clipboard

No way to set master password via environment

Open justinasjaronis opened this issue 8 years ago • 5 comments

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.

justinasjaronis avatar Jun 16 '17 15:06 justinasjaronis

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)

yelizariev avatar Jun 18 '17 12:06 yelizariev

I have a similar problem passing the master password and other values by environtment variables. Config file does no take the correct value.

SalahAdDin avatar Jun 04 '18 13:06 SalahAdDin

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

d-fence avatar Apr 03 '20 10:04 d-fence

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 admin username password goes back to admin as well

I tried several combinations, providing `-c /etc/odoo/odoo.conf' to cmd but no dice.

jlegido avatar Apr 30 '21 12:04 jlegido

@justinasjaronis is this still an issue for you? Can you confirm this issue against 17?

lathama avatar Mar 31 '24 20:03 lathama