Skip to content

Commit

Permalink
hack fix for SLES postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
braydonk committed Jul 3, 2024
1 parent a9c5aad commit 88562f5
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 <SLES version number>.<Service Pack number>.
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

Expand Down

0 comments on commit 88562f5

Please sign in to comment.