From 7f58552f60235cf79a8c63f9c10bc4a29377ddfa Mon Sep 17 00:00:00 2001 From: Dave Page Date: Tue, 2 Jun 2020 12:33:57 +0100 Subject: [PATCH] Include the PostgreSQL repo so we get the latest libpq --- pkg/debian/setup.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkg/debian/setup.sh b/pkg/debian/setup.sh index 7457e53f0..f19b2ef70 100755 --- a/pkg/debian/setup.sh +++ b/pkg/debian/setup.sh @@ -6,11 +6,16 @@ if [ "$EUID" -ne 0 ] fi echo "Installing system pre-requisites..." -apt install -y curl apt-transport-https ca-certificates +apt install -y curl apt-transport-https ca-certificates gnupg echo "Removing yarn (which may not be the package we expect)..." dpkg -r yarn +# PostgreSQL +echo "Setting up the PostgreSQL repo..." +curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - +sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' + # Node repo echo "Setting up the NodeJS repo..." curl -sL https://deb.nodesource.com/setup_12.x | bash -