Skip to content

The open alternative to Salesforce, designed for AI.

Double check install with postgres15 on WSL (#2643)

gitstart-twenty784db1834712
diff --git a/infra/dev/scripts/setup-postgres-linux.sh b/infra/dev/scripts/setup-postgres-linux.sh
old mode 100644
new mode 100755
index ae6d6a589d7..3c68dad8b05
--- a/infra/dev/scripts/setup-postgres-linux.sh
+++ b/infra/dev/scripts/setup-postgres-linux.sh
@@ -53,6 +53,8 @@ TARGETARCH=$(dpkg --print-architecture)
# Install PostgresSQL
echo_header $GREEN "Step [1/4]: Installing PostgreSQL..."
+sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
+wget -qO- https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo tee /etc/apt/trusted.gpg.d/pgdg.asc &>/dev/null
sudo apt update -y || handle_error "Failed to update package list."
sudo apt install -y postgresql-$PG_MAIN_VERSION postgresql-contrib || handle_error "Failed to install PostgreSQL."su
sudo apt install -y curl || handle_error "Failed to install curl."