Include the PostgreSQL repo so we get the latest libpq

This commit is contained in:
Dave Page 2020-06-02 12:33:57 +01:00
parent 2549085872
commit 7f58552f60

View File

@ -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 -