mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-09 10:02:56 +01:00
Purge system postgresql-client
To avoid shipping mixed versions of the PostgreSQL client, remove the system client before installing the PGDG version.
This commit is contained in:
parent
1872ff455a
commit
5f0b845d67
1 changed files with 3 additions and 0 deletions
|
|
@ -6,6 +6,9 @@ POSTGRES_VERSION=${1:-12}
|
||||||
DEBIAN_VERSION=${2:-buster}
|
DEBIAN_VERSION=${2:-buster}
|
||||||
export DEBIAN_FRONTEND=noninteractive
|
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 -
|
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
|
echo "deb http://apt.postgresql.org/pub/repos/apt/ ${DEBIAN_VERSION}-pgdg main" | tee /etc/apt/sources.list.d/postgresql.list
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue