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:
authorquydang <81231812+quydang04@users.noreply.github.com>2023-12-23 11:56:56 +0300
committerGitHub <noreply@github.com>2023-12-23 11:56:56 +0300
commit6a41e19f7ab98b46cbf00a4d9f10395e2113ff1d (patch)
treed692a1d806d861c58f5fa14f87f549b049dedb92 /install.sh
parent0d2bdde149b467e563807b59da0f42b3c0ebc743 (diff)
Update README and added support for AlmaLinux. (#1435)
* Update install.sh * Update x-ui.sh * Update install.sh * Update README.md * Update install.sh
Diffstat (limited to 'install.sh')
-rw-r--r--install.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/install.sh b/install.sh
index 8c470cca..3dc2bb61 100644
--- a/install.sh
+++ b/install.sh
@@ -27,7 +27,7 @@ arch3xui() {
case "$(uname -m)" in
x86_64 | x64 | amd64) echo 'amd64' ;;
armv8* | armv8 | arm64 | aarch64) echo 'arm64' ;;
- armv7* | armv7 | arm | arm32 ) echo 'arm32' ;;
+ armv7* | armv7 | arm | arm32 ) echo 'arm' ;;
*) echo -e "${green}Unsupported CPU architecture! ${plain}" && rm -f install.sh && exit 1 ;;
esac
}
@@ -54,6 +54,11 @@ elif [[ "${release}" == "debian" ]]; then
if [[ ${os_version} -lt 10 ]]; then
echo -e "${red} Please use Debian 10 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
+ fi
elif [[ "${release}" == "arch" ]]; then
echo "Your OS is ArchLinux"
elif [[ "${release}" == "manjaro" ]]; then
@@ -67,7 +72,7 @@ fi
install_base() {
case "${release}" in
- centos|fedora)
+ centos|fedora|almalinux)
yum -y update && yum install -y -q wget curl tar
;;
arch|manjaro)