We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9745249 commit 8bf5cceCopy full SHA for 8bf5cce
.github/workflows/install-postgres.sh
@@ -28,10 +28,10 @@ if [ "${ID}" = "debian" -o "${ID}" = "ubuntu" ]; then
28
"postgresql-${PGVERSION}" \
29
"postgresql-contrib-${PGVERSION}"
30
elif [ "${ID}" = "centos" ]; then
31
- el="EL-${VERSION_ID}-$(arch)"
+ el="EL-${VERSION_ID%.*}-$(arch)"
32
baseurl="https://download.postgresql.org/pub/repos/yum/reporpms"
33
yum install -y "${baseurl}/${el}/pgdg-redhat-repo-latest.noarch.rpm"
34
- if [ ${VERSION_ID} -ge 8 ]; then
+ if [ ${VERSION_ID%.*} -ge 8 ]; then
35
dnf -qy module disable postgresql
36
fi
37
yum install -y \
0 commit comments