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 /install.sh
parent43713fbdf8f441db09396ca9300c181e23a2715f (diff)
OS Support - Amazon Linux + AlmaLinux 8
Diffstat (limited to 'install.sh')
-rw-r--r--install.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/install.sh b/install.sh
index 2fe66b08..ea60eb54 100644
--- a/install.sh
+++ b/install.sh
@@ -39,7 +39,7 @@ arch() {
echo "arch: $(arch)"
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"
@@ -56,7 +56,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
@@ -72,8 +72,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
@@ -94,7 +94,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"