Skip to content

Commit

Permalink
Set random admin password
Browse files Browse the repository at this point in the history
So users cannot do anything harmful with the database manager,
which is now enabled so they can select the base or full
database
  • Loading branch information
sbidoul committed Nov 19, 2023
1 parent 7679473 commit 1b5562a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/runboat/kubefiles/runboat-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down

0 comments on commit 1b5562a

Please sign in to comment.