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:
authorSanaei <ho3ein.sanaei@gmail.com>2024-09-24 17:50:00 +0300
committermhsanaei <ho3ein.sanaei@gmail.com>2024-09-25 11:13:54 +0300
commitda7e4d51d6ff62ac71c5c11eb09b9a5f8bad2426 (patch)
tree6ec86ddbfaf445c41453cacc26997b695aef94cb /x-ui.sh
parent43713fbdf8f441db09396ca9300c181e23a2715f (diff)
OS Support - Amazon Linux + AlmaLinux 8
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"