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

No way to set master password via environment #112

Open
justinasjaronis opened this issue Jun 16, 2017 · 5 comments
Open

No way to set master password via environment #112

justinasjaronis opened this issue Jun 16, 2017 · 5 comments

Comments

@justinasjaronis
Copy link

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.

@yelizariev
Copy link

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)

@SalahAdDin
Copy link

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

@d-fence
Copy link
Contributor

d-fence commented Apr 3, 2020

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

@jlegido
Copy link

jlegido commented Apr 30, 2021

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.

@lathama
Copy link

lathama commented Mar 31, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants