Dont fail if app_user is already created
This commit is contained in:
@ -1,9 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
psql --host $PG_HOST -U $PG_USER -d $PG_DB -c "CREATE USER app_user WITH PASSWORD 'app_pass';"
|
||||
psql --host $PG_HOST -U $PG_USER -d $PG_DB -c "CREATE USER app_user WITH PASSWORD 'app_pass';" || true
|
||||
echo "created app_user"
|
||||
yarn workspace @omnivore/db migrate
|
||||
psql --host $PG_HOST -U $PG_USER -d $PG_DB -c "GRANT omnivore_user TO app_user;"
|
||||
psql --host $PG_HOST -U $PG_USER -d $PG_DB -c "GRANT omnivore_user TO app_user;" || true
|
||||
echo "granted omnivore_user to app_user"
|
||||
|
||||
# create demo user with email: demo@omnivore.app, password: demo
|
||||
|
||||
Reference in New Issue
Block a user