Double check install with postgres15 on WSL (#2643)
* Merge main Co-authored-by: Thiago Nascimbeni <tnascimbeni@gmail.com> * Revert unnecessary change Co-authored-by: Thiago Nascimbeni <tnascimbeni@gmail.com> --------- Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com> Co-authored-by: Thiago Nascimbeni <tnascimbeni@gmail.com>
This commit is contained in:
2
infra/dev/scripts/setup-postgres-linux.sh
Normal file → Executable file
2
infra/dev/scripts/setup-postgres-linux.sh
Normal file → Executable file
@ -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."
|
||||
|
||||
Reference in New Issue
Block a user