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-19 13:27:04 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2023-12-19 13:29:26 +0300
commita2bdf23940ffafabbee5329472aea8473af1aec5 (patch)
treee657e0a5366b2f47223326fe30ce719724c2a8cc /install.sh
parentd08aaa006849e6318aee61e7b4ff828bc4bd3272 (diff)
Update support for new architecture ARM devices and added support for more OS. (#1389)
* Add files via upload * Delete web/translation/translate.vi_VN.toml * Add files via upload * Update translate.vi_VN.toml * Update release.yml * Update install.sh * Update install.sh * Update install.sh * Update install.sh * Update x-ui.sh * Update docker.yml * Update DockerInit.sh * Update install.sh * Update install.sh * Update install.sh * Update .github/workflows/release.yml * Update README.md --------- Co-authored-by: Ho3ein <ho3ein.sanaei@gmail.com>
Diffstat (limited to 'install.sh')
-rw-r--r--install.sh19
1 files changed, 12 insertions, 7 deletions
diff --git a/install.sh b/install.sh
index 3338b64f..1dc61e23 100644
--- a/install.sh
+++ b/install.sh
@@ -26,7 +26,8 @@ echo "The OS release is: $release"
arch3xui() {
case "$(uname -m)" in
x86_64 | x64 | amd64) echo 'amd64' ;;
- armv8 | arm64 | aarch64) echo 'arm64' ;;
+ armv8* | armv8 | arm64 | aarch64) echo 'arm64' ;;
+ armv7* | armv7 | arm | arm32 ) echo 'arm32' ;;
*) echo -e "${green}Unsupported CPU architecture! ${plain}" && rm -f install.sh && exit 1 ;;
esac
}
@@ -54,7 +55,11 @@ elif [[ "${release}" == "debian" ]]; then
echo -e "${red} Please use Debian 10 or higher ${plain}\n" && exit 1
fi
elif [[ "${release}" == "arch" ]]; then
- echo "OS is ArchLinux"
+ echo "Your OS is ArchLinux"
+elif [[ "${release}" == "manjaro" ]]; then
+ echo "Your OS is Manjaro"
+elif [[ "${release}" == "armbian" ]]; then
+ echo "Your OS is Armbian"
else
echo -e "${red}Failed to check the OS version, please contact the author!${plain}" && exit 1
@@ -63,13 +68,13 @@ fi
install_base() {
case "${release}" in
centos|fedora)
- yum install -y -q wget curl tar
+ yum -y update && yum install -y -q wget curl tar
;;
- arch)
- pacman -Syu --noconfirm wget curl tar
+ arch|manjaro)
+ pacman -Syu && pacman -Syu --noconfirm wget curl tar
;;
*)
- apt install -y -q wget curl tar
+ apt-get update && apt-get upgrade -y && apt install -y -q wget curl tar
;;
esac
}
@@ -78,7 +83,7 @@ install_base() {
# This function will be called when user installed x-ui out of security
config_after_install() {
echo -e "${yellow}Install/update finished! For security it's recommended to modify panel settings ${plain}"
- read -p "Do you want to continue with the modification [y/n]? ": config_confirm
+ read -p "Do you want to continue with the modification [y/n]?": config_confirm
if [[ "${config_confirm}" == "y" || "${config_confirm}" == "Y" ]]; then
read -p "Please set up your username:" config_account
echo -e "${yellow}Your username will be:${config_account}${plain}"