From 88562f5654af15c1fc0cf6ad4f79ea74f5d49baa Mon Sep 17 00:00:00 2001 From: braydonk Date: Wed, 3 Jul 2024 18:16:37 +0000 Subject: [PATCH] hack fix for SLES postgres --- .../applications/postgresql/sles/install | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/integration_test/third_party_apps_test/applications/postgresql/sles/install b/integration_test/third_party_apps_test/applications/postgresql/sles/install index a9e7702132..e0047c230a 100644 --- a/integration_test/third_party_apps_test/applications/postgresql/sles/install +++ b/integration_test/third_party_apps_test/applications/postgresql/sles/install @@ -14,6 +14,14 @@ if [[ "${SUSE_VERSION}" == 12 ]]; then sudo zypper --no-gpg-checks in -y postgresql14-server=14.1-3.3.1 postgresql14-contrib=14.1-3.3.1 postgresql14-libs=14.1-1PGDG.sles12 postgresql14=14.1-3.3.1 elif [[ "${SUSE_VERSION}" == 15 ]]; then sudo zypper addrepo https://download.postgresql.org/pub/repos/zypp/repo/pgdg-sles-15-pg14.repo + + # VERSION_ID is taken from /etc/os-release, and is of the form .. + if [[ "$VERSION_ID" == "15.6" ]]; then + # TODO(b/350987619): There is currently no "15.6" repo for PostgreSQL 14. Since the automatic + # $releasever variable + sudo sed -i "s/\$releasever/15/g" /etc/zypp/repos.d/pgdg-14.repo + fi + sudo zypper --non-interactive --no-gpg-checks ref sudo zypper --no-gpg-checks in -y postgresql14-server postgresql14-contrib postgresql14