Skip to content

The open alternative to Salesforce, designed for AI.

Fix mac os script

Charles Bochet09fe29e559c7
diff --git a/infra/dev/scripts/setup-postgres-macos.sh b/infra/dev/scripts/setup-postgres-macos.sh
index 3d15484cf55..a0162c9d48c 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."