From 6979ed9d97bf866b8a1a320bbd29067a73dc6ca0 Mon Sep 17 00:00:00 2001 From: Alex Vandiver Date: Fri, 12 Jun 2020 18:07:55 -0700 Subject: [PATCH] install: Use the apt postgres server packages from postgres. This allows Debian and Ubuntu administrators to reasonably seamlessly swap over to more recent version of postgres than ships with their distribution. --- scripts/lib/setup-apt-repo | 8 ++++ scripts/setup/pgdg.asc | 77 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 85 insertions(+) create mode 100644 scripts/setup/pgdg.asc diff --git a/scripts/lib/setup-apt-repo b/scripts/lib/setup-apt-repo index fce55f23a0..ced0a2ed47 100755 --- a/scripts/lib/setup-apt-repo +++ b/scripts/lib/setup-apt-repo @@ -37,14 +37,22 @@ SCRIPTS_PATH="$(dirname "$(dirname "$0")")" release=$(lsb_release -sc) if [[ "$release" =~ ^(xenial|bionic|cosmic|disco|eoan|focal)$ ]] ; then + apt-key add "$SCRIPTS_PATH"/setup/pgdg.asc apt-key add "$SCRIPTS_PATH"/setup/pgroonga-ppa.asc cat >$SOURCES_FILE <$SOURCES_FILE <