mirror of
https://gitlab.com/itsulu-odoo/runboat.git
synced 2026-05-30 23:41:27 +00:00
Set random admin password
So users cannot do anything harmful with the database manager, which is now enabled so they can select the base or full database
This commit is contained in:
parent
7679473acd
commit
1b5562a881
1 changed files with 3 additions and 0 deletions
|
|
@ -14,6 +14,9 @@ fi
|
|||
# show what is installed (the venv in /opt/odoo-venv has been mounted)
|
||||
pip list
|
||||
|
||||
# Make sure users cannot create databases.
|
||||
echo "admin_passwd=$(python3 -c 'import secrets; print(secrets.token_hex())')" >> ${ODOO_RC}
|
||||
|
||||
# Add ADDONS_DIR to addons_path (because that oca_install_addons did,
|
||||
# but $ODOO_RC is not on a persistent volume, so it is lost when we
|
||||
# start in another container).
|
||||
|
|
|
|||
Loading…
Reference in a new issue