Browse Source

fix: missing rhel 9 check

M1Screw 2 years ago
parent
commit
a4c86a600e
1 changed files with 4 additions and 0 deletions
  1. 4 0
      include/check_os.sh

+ 4 - 0
include/check_os.sh

@@ -76,6 +76,10 @@ elif [ -e "/etc/oracle-release" ]; then
   Family=rhel
   Platform=Oracle
   grep -Eqi "release 9." /etc/oracle-release && RHEL_ver=9
+elif [ -e "/etc/redhat-release" ]; then
+  Family=rhel
+  Platform=RedHat
+  grep -Eqi "release 9." /etc/redhat-release && RHEL_ver=9
 else
   command -v lsb_release >/dev/null 2>&1 || { echo "${CFAILURE}${PM} source failed! ${CEND}"; kill -9 $$; exit 1; }
 fi