Skip to content

Commit 3340744

Browse files
xemulavikivity
authored andcommitted
install-dependencies: Support rhel-8.3
The deps installer for centos also suits for rhel distro, but it needs to get the major part from the VERSION_ID. Signed-off-by: Pavel Emelyanov <xemul@scylladb.com> Message-Id: <20210316145506.16205-1-xemul@scylladb.com>
1 parent a9d75cb commit 3340744

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

install-dependencies.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -213,11 +213,11 @@ case "$ID" in
213213
fedora)
214214
dnf install -y "${fedora_packages[@]}"
215215
;;
216-
centos)
216+
rhel|centos)
217217
if [ "$VERSION_ID" = "7" ]; then
218218
yum install -y epel-release centos-release-scl scl-utils
219219
yum install -y "${centos7_packages[@]}"
220-
elif [ "$VERSION_ID" = "8" ]; then
220+
elif [ "${VERSION_ID%%.*}" = "8" ]; then
221221
dnf install -y epel-release
222222
dnf install -y "${centos8_packages[@]}"
223223
fi

0 commit comments

Comments
 (0)