Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'x-ui.sh')
-rw-r--r--x-ui.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/x-ui.sh b/x-ui.sh
index 46449217..9067ef4f 100644
--- a/x-ui.sh
+++ b/x-ui.sh
@@ -36,7 +36,7 @@ fi
echo "The OS release is: $release"
os_version=""
-os_version=$(grep "^VERSION_ID" /etc/os-release | cut -d '=' -f2 | tr -d '"')
+os_version=$(grep "^VERSION_ID" /etc/os-release | cut -d '=' -f2 | tr -d '"' | tr -d '.')
if [[ "${release}" == "arch" ]]; then
echo "Your OS is Arch Linux"
@@ -53,7 +53,7 @@ elif [[ "${release}" == "centos" ]]; then
echo -e "${red} Please use CentOS 8 or higher ${plain}\n" && exit 1
fi
elif [[ "${release}" == "ubuntu" ]]; then
- if [[ ${os_version} -lt 20 ]]; then
+ if [[ ${os_version} -lt 2004 ]]; then
echo -e "${red} Please use Ubuntu 20 or higher version!${plain}\n" && exit 1
fi
elif [[ "${release}" == "fedora" ]]; then
@@ -69,8 +69,8 @@ elif [[ "${release}" == "debian" ]]; then
echo -e "${red} Please use Debian 11 or higher ${plain}\n" && exit 1
fi
elif [[ "${release}" == "almalinux" ]]; then
- if [[ ${os_version} -lt 9 ]]; then
- echo -e "${red} Please use AlmaLinux 9 or higher ${plain}\n" && exit 1
+ if [[ ${os_version} -lt 8 ]]; then
+ echo -e "${red} Please use AlmaLinux 8 or higher ${plain}\n" && exit 1
fi
elif [[ "${release}" == "rocky" ]]; then
if [[ ${os_version} -lt 9 ]]; then
@@ -91,7 +91,7 @@ else
echo "- Parch Linux"
echo "- Manjaro"
echo "- Armbian"
- echo "- AlmaLinux 9+"
+ echo "- AlmaLinux 8+"
echo "- Rocky Linux 9+"
echo "- Oracle Linux 8+"
echo "- OpenSUSE Tumbleweed"