diff --git a/infra/dev/scripts/setup-postgres-macos.sh b/infra/dev/scripts/setup-postgres-macos.sh index 3d15484cf..a0162c9d4 100755 --- a/infra/dev/scripts/setup-postgres-macos.sh +++ b/infra/dev/scripts/setup-postgres-macos.sh @@ -105,4 +105,4 @@ fi # Run the init.sql to setup database echo_header $GREEN "Step [4/4]: Setting up database..." cp ./infra/dev/postgres/init.sql /tmp/init.sql -psql -f /tmp/init.sql || handle_error "Failed to execute init.sql script." +psql -f /tmp/init.sql -d postgres|| handle_error "Failed to execute init.sql script."