support redhat9

This commit is contained in:
qiaofeng1227 2023-08-10 17:04:34 +08:00
parent facb8a7adb
commit f0b0aaff9f

View file

@ -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