From f0b0aaff9fdc0be745af35c41077670db44f763b Mon Sep 17 00:00:00 2001 From: qiaofeng1227 <76487013@qq.com> Date: Thu, 10 Aug 2023 17:04:34 +0800 Subject: [PATCH] support redhat9 --- install/install.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install/install.sh b/install/install.sh index 64886005..fa5bb350 100644 --- a/install/install.sh +++ b/install/install.sh @@ -86,14 +86,14 @@ if [ "$os_type" == 'CentOS' ] ;then fi if [ "$os_type" == 'CentOS Stream' ] ;then - if [ "$os_version" != "8" ]; then - echo "This app only supported on CentOS Stream 8" + if [ "$os_version" != "8" ] || [ "$os_version" != "9" ]; then + echo "This app only supported on CentOS Stream 8,9" exit 1 fi fi if [ "$os_type" == 'Rocky Linux' ] ;then - if [ "${os_version:0:1}" == "8" ]; then + if [ "${os_version:0:1}" == "8" ] || [ "${os_version:0:1}" == "9" ]; then echo "" else echo "This app only supported on Rocky Linux 8" @@ -109,7 +109,7 @@ if [ "$os_type" == 'Fedora' ];then fi if [ "$os_type" == 'Redhat' ];then - if [ "${os_version:0:1}" != "7" ] && [ "${os_version:0:1}" != "8" ]; then + if [ "${os_version:0:1}" != "7" ] && [ "${os_version:0:1}" != "8" ] && [ "${os_version:0:1}" != "9" ]; then echo "This app only supported on Redhat 7,8" exit 1 fi