Add building support for RHEL (#2095)
Signed-off-by: Hollow Man <hollowman@opensuse.org>
This commit is contained in:
parent
4a48d6789c
commit
99f2556250
10
deps/init/dep_create.sh
vendored
10
deps/init/dep_create.sh
vendored
@ -51,6 +51,11 @@ function echo_err() {
|
||||
function get_os_release() {
|
||||
if [[ "${OS_ARCH}x" == "x86_64x" ]]; then
|
||||
case "$ID" in
|
||||
rhel)
|
||||
version_ge "9.0" && compat_centos9 && return
|
||||
version_ge "8.0" && compat_centos8 && return
|
||||
version_ge "7.0" && compat_centos7 && return
|
||||
;;
|
||||
alinux)
|
||||
version_ge "3.0" && compat_centos9 && return
|
||||
version_ge "2.1903" && compat_centos7 && return
|
||||
@ -111,6 +116,11 @@ function get_os_release() {
|
||||
esac
|
||||
elif [[ "${OS_ARCH}x" == "aarch64x" ]]; then
|
||||
case "$ID" in
|
||||
rhel)
|
||||
version_ge "9.0" && compat_centos9 && return
|
||||
version_ge "8.0" && compat_centos8 && return
|
||||
version_ge "7.0" && compat_centos7 && return
|
||||
;;
|
||||
alios)
|
||||
version_ge "8.0" && compat_centos8 && return
|
||||
version_ge "7.0" && compat_centos7 && return
|
||||
|
Loading…
x
Reference in New Issue
Block a user