From 48c98a5191853dea6a23400ffb1d462304b9463f Mon Sep 17 00:00:00 2001 From: Pavlo Strokov Date: Thu, 16 Jul 2020 00:46:52 +0300 Subject: [PATCH] Adding of PgBouncer Fix installation script of PgBouncer. Single download + removal of all tmp data. Related to: https://gitlab.com/gitlab-org/gitaly/-/issues/2816 --- scripts/install-pgbouncer | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/scripts/install-pgbouncer b/scripts/install-pgbouncer index 7738231..be00920 100755 --- a/scripts/install-pgbouncer +++ b/scripts/install-pgbouncer @@ -3,16 +3,13 @@ PGBOUNCER_VERSION=${1} PGBOUNCER_DOWNLOAD_SHA256=${2} -PGBOUNCER_DOWNLOAD_URL="https://www.pgbouncer.org/downloads/files/${PGBOUNCER_VERSION}/pgbouncer-${PGBOUNCER_VERSION}.tar.gz" +PGBOUNCER_DOWNLOAD_URL="https://pgbouncer.github.io/downloads/files/$PGBOUNCER_VERSION/pgbouncer-$PGBOUNCER_VERSION.tar.gz" -curl -fsSL "$PGBOUNCER_DOWNLOAD_URL" -o pgbouncer.zip -echo "${PGBOUNCER_DOWNLOAD_SHA256} pgbouncer.zip" | sha256sum -c - -unzip -d /usr/local/bin pgbouncer.zip -rm pgbouncer.zip +curl -o pgbouncer.tar.gz -fsSL $PGBOUNCER_DOWNLOAD_URL +echo "${PGBOUNCER_DOWNLOAD_SHA256} pgbouncer.tar.gz" | sha256sum -c - -curl -o pgbouncer.tar.gz -L https://pgbouncer.github.io/downloads/files/$PGBOUNCER_VERSION/pgbouncer-$PGBOUNCER_VERSION.tar.gz - -tar xvfz pgbouncer.tar.gz +tar xfz pgbouncer.tar.gz +rm -f pgbouncer.tar.gz cd pgbouncer-${PGBOUNCER_VERSION} ./configure --prefix=/usr/local make