Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions docker/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ pg_sync_password() {
ALTER USER supabase_admin WITH PASSWORD :'pgpass';
EOSQL

# execute the roles SQL file using docker_process_sql
docker_process_sql -f /docker-entrypoint-initdb.d/init-scripts/99-roles.sql
docker_process_sql -f "${ROLES_INIT_SCRIPT_PATH}"

docker_temp_server_stop
unset PGPASSWORD
Expand Down Expand Up @@ -72,7 +71,9 @@ _main() {
EOM
fi

pg_sync_password "$@"
if [ -n "${ROLES_INIT_SCRIPT_PATH:-}" ]; then
pg_sync_password "$@"
fi
fi

exec "$@"
Expand Down