diff options
| author | quydang <81231812+quydang04@users.noreply.github.com> | 2024-01-16 03:01:15 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-16 03:01:15 +0300 |
| commit | 6550aa6bad93bc45f75fa9a975637115645b0637 (patch) | |
| tree | 26d3c133dddfca88b6b15deb1b808bbae55cfa0b | |
| parent | 2a2024375118c079839c59fa73da7b91143b6b22 (diff) | |
Hotfix for ARMv7 and ARMv6 (#1589)
| -rw-r--r-- | install.sh | 16 |
1 files changed, 10 insertions, 6 deletions
@@ -160,18 +160,21 @@ install_x-ui() { tar zxvf x-ui-linux-$(arch3xui).tar.gz rm x-ui-linux-$(arch3xui).tar.gz -f cd x-ui + chmod +x x-ui + + # Check the system's architecture and rename the file accordingly + if [[ $(arch3xui) == "armv6" || $(arch3xui) == "armv7" ]]; then + mv bin/xray-linux-$(arch3xui) bin/xray-linux-arm + chmod +x bin/xray-linux-arm + fi + chmod +x x-ui bin/xray-linux-$(arch3xui) cp -f x-ui.service /etc/systemd/system/ wget --no-check-certificate -O /usr/bin/x-ui https://raw.githubusercontent.com/MHSanaei/3x-ui/main/x-ui.sh chmod +x /usr/local/x-ui/x-ui.sh chmod +x /usr/bin/x-ui config_after_install - #echo -e "If it is a new installation, the default web port is ${green}2053${plain}, The username and password are ${green}admin${plain} by default" - #echo -e "Please make sure that this port is not occupied by other procedures,${yellow} And make sure that port 2053 has been released${plain}" - # echo -e "If you want to modify the 2053 to other ports and enter the x-ui command to modify it, you must also ensure that the port you modify is also released" - #echo -e "" - #echo -e "If it is updated panel, access the panel in your previous way" - #echo -e "" + systemctl daemon-reload systemctl enable x-ui systemctl start x-ui @@ -194,6 +197,7 @@ install_x-ui() { echo -e "----------------------------------------------" } + echo -e "${green}Running...${plain}" install_base install_x-ui $1 |
