remove outdated env vars and fix make_last_user_admin
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2025-02-10 15:40:49 +01:00
parent 7581ab7ecf
commit f8eff5044e
3 changed files with 8 additions and 7 deletions

View File

@ -1,6 +1,8 @@
export LOOMIO_ENTRYPOINT_VERSION=v5
# cannot be integrated into entrypoint.sh as it requires the operator to create a user first
function make_last_user_admin()
{
export DATABASE_URL="postgresql://${POSTGRES_USER}:$(cat /run/secrets/db_password)@db/${POSTGRES_DB}"
SECRET_KEY_BASE=$(rake secret) rails runner "User.last.update(is_admin: true)"
}