From 784db1834712de06cb4b9086acfdb9666618f454 Mon Sep 17 00:00:00 2001 From: gitstart-twenty <140154534+gitstart-twenty@users.noreply.github.com> Date: Tue, 28 Nov 2023 23:23:26 +0545 Subject: [PATCH] Double check install with postgres15 on WSL (#2643) * Merge main Co-authored-by: Thiago Nascimbeni * Revert unnecessary change Co-authored-by: Thiago Nascimbeni --------- Co-authored-by: gitstart-twenty Co-authored-by: Thiago Nascimbeni --- infra/dev/scripts/setup-postgres-linux.sh | 2 ++ 1 file changed, 2 insertions(+) mode change 100644 => 100755 infra/dev/scripts/setup-postgres-linux.sh 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 ae6d6a589..3c68dad8b --- 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."