The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Update mac os script for pg15 (#2427)
Charles Bochet41f658b1edc5
diff --git a/infra/dev/scripts/setup-postgres-macos.sh b/infra/dev/scripts/setup-postgres-macos.shindex d3ff1afef9d..b354ab7fe7d 100755--- a/infra/dev/scripts/setup-postgres-macos.sh+++ b/infra/dev/scripts/setup-postgres-macos.sh@@ -56,7 +56,7 @@ current_directory=$(pwd)# Install PostgresSQLecho_header $GREEN "Step [1/4]: Installing PostgreSQL..."-brew install postgresql@$PG_MAIN_VERSION+brew reinstall postgresql@$PG_MAIN_VERSION# Install pg_graphql extensionsecho_header $GREEN "Step [2/4]: Installing GraphQL for PostgreSQL..."@@ -65,7 +65,7 @@ echo_header $GREEN "Step [2/4]: Installing GraphQL for PostgreSQL..."curl https://sh.rustup.rs -sSf | shsource "$HOME/.cargo/env"cargo install --locked cargo-pgrx@$CARGO_PGRX_VERSION-cargo pgrx init --pg14 download+cargo pgrx init --pg$PG_MAIN_VERSION download# Uninstall existing Rust installation if foundexisting_rust_path=$(which rustc)@@ -88,9 +88,9 @@ curl -LJO https://github.com/supabase/pg_graphql/archive/refs/tags/v$PG_GRAPHQL_unzip pg_graphql-$PG_GRAPHQL_VERSION.zipcd "pg_graphql-$PG_GRAPHQL_VERSION"-cargo pgrx install --release+cargo pgrx install --release --pg-config /opt/homebrew/opt/postgresql@$PG_MAIN_VERSION/bin/pg_config-# Clean up the temporary directory+# # Clean up the temporary directoryecho "Cleaning up..."cd "$current_directory"rm -rf "$temp_dir"@@ -98,10 +98,7 @@ rm -rf "$temp_dir"# Start postgresql serviceecho_header $GREEN "Step [3/4]: Starting PostgreSQL service..."-if ! command -v brew &> /dev/null; then- echo_header $RED "Warning: Homebrew is not found in your PATH. Adding it to PATH..."- export PATH="/opt/homebrew/bin:$PATH"-fi+[[ ":$PATH:" != *":/opt/homebrew/opt/postgresql@$PG_MAIN_VERSION/bin:"* ]] && PATH="/opt/homebrew/opt/postgresql@$PG_MAIN_VERSION/bin:${PATH}"if brew services start postgresql@$PG_MAIN_VERSION; thenecho "PostgreSQL service started successfully."