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
This commit is contained in:
parent
5a6874c0ec
commit
026d2feefd
@ -21,7 +21,7 @@ BRANCH=master
|
||||
|
||||
# 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}
|
||||
|
Loading…
Reference in New Issue
Block a user