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:
Stéphane Bidoul 2023-11-18 12:35:26 +01:00
parent 7679473acd
commit 1b5562a881

View file

@ -14,6 +14,9 @@ fi
# show what is installed (the venv in /opt/odoo-venv has been mounted) # show what is installed (the venv in /opt/odoo-venv has been mounted)
pip list 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, # 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 # but $ODOO_RC is not on a persistent volume, so it is lost when we
# start in another container). # start in another container).