Rely on ID/VERSION_ID to detect distro

REDHAT_SUPPORT_PRODUCT* are removed from recent
CentOS8.3 release[1], Let's use ID/VERSION_ID instead
which are available[2] and would serve our purpose.

[1] https://git.centos.org/rpms/centos-linux-release/c/2e3df0
[2] https://www.freedesktop.org/software/systemd/man/os-release.html

Change-Id: Ic10b461dde012e01de87eaf03745f17fbaf704e8
(cherry picked from commit 026d2feefd)
This commit is contained in:
yatinkarel 2020-12-11 13:52:06 +05:30 committed by yatin
parent 20d8eb9d43
commit 7d1a8f3c41
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ BRANCH=stable/victoria
# Find OS version and release
source /etc/os-release
OS_NAME_VERS=${REDHAT_SUPPORT_PRODUCT}${REDHAT_SUPPORT_PRODUCT_VERSION}
OS_NAME_VERS=${ID}${VERSION_ID}
# We could want to override the default repositories or install behavior
INSTALL_FROM_SOURCE=${INSTALL_FROM_SOURCE:-true}