setup-yum-repo: Abstract out postgres version.

This commit is contained in:
rht
2018-12-16 19:29:45 +00:00
committed by Tim Abbott
parent 43bedc0909
commit 3afb299aec

View File

@@ -10,8 +10,9 @@ yum groupinstall -y "Development Tools"
RHVER="$(rpm -qf --queryformat="%{VERSION}" /etc/redhat-release)"
RHARCH="$(rpm -qf --queryformat="%{ARCH}" /etc/redhat-release)"
# PostgreSQL 10
yum localinstall -y "https://yum.postgresql.org/10/redhat/rhel-$RHVER-$RHARCH/pgdg-centos10-10-2.noarch.rpm"
PGVER=10
# PostgreSQL $PGVER
yum localinstall -y "https://yum.postgresql.org/$PGVER/redhat/rhel-$RHVER-$RHARCH/pgdg-centos$PGVER-$PGVER-2.noarch.rpm"
# PGroonga
# https://pgroonga.github.io/install/centos.html