Dockerfile updates
This commit is contained in:
parent
842dd95e43
commit
6dc4cfd3cc
21 changed files with 74 additions and 63 deletions
6
scripts/create-admin-user.sh
Normal file
6
scripts/create-admin-user.sh
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue