This commit is contained in:
Darren Clarke 2024-03-17 12:58:25 +01:00
parent f62c9f064d
commit b8c6e893ff
43 changed files with 4721 additions and 1807 deletions

View file

@ -1,6 +0,0 @@
echo "Creating Metamigo admin user"
psql -Xv ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$DATABASE_NAME" <<EOF
INSERT INTO app_public.users(email, name, user_role, is_active, created_by)
VALUES('$GITLAB_EMAIL_ADDRESS', 'Admin', 'admin'::app_public.role_type, true, '')
on conflict (email) do update set user_role = 'admin'::app_public.role_type, is_active = true;
EOF