Merge branch 'sh-uninstall-system-postgresql-client' into 'master'

Purge system postgresql-client

See merge request gitlab-org/gitlab-build-images!489
This commit is contained in:
Balasankar 'Balu' C 2022-02-11 06:34:39 +00:00
commit a22760c672

View file

@ -6,6 +6,9 @@ POSTGRES_VERSION=${1:-12}
DEBIAN_VERSION=${2:-buster}
export DEBIAN_FRONTEND=noninteractive
# Uninstall the system client so that we don't have multiple versions
apt purge -y postgresql-client postgresql-client-common
curl -sS -L https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
echo "deb http://apt.postgresql.org/pub/repos/apt/ ${DEBIAN_VERSION}-pgdg main" | tee /etc/apt/sources.list.d/postgresql.list