diff options
| author | Hiradpi <78161225+Hiradpi@users.noreply.github.com> | 2023-08-08 21:48:00 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-08-08 21:50:16 +0300 |
| commit | 22cf278ce21c3e56bbf6876586affee5971f25c1 (patch) | |
| tree | 728a6b8f3630417f8781e83963fa533a7100c490 /install.sh | |
| parent | 5ab5986bd09819101588a6dcf79cabd48d3e4840 (diff) | |
add Arch Linux support to install.sh (#873)
* Update install.sh
Arch linux support added
* Update install.sh
Diffstat (limited to 'install.sh')
| -rw-r--r-- | install.sh | 19 |
1 files changed, 13 insertions, 6 deletions
@@ -53,21 +53,28 @@ 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}" == "arch" ]]; then + echo "OS is ArchLinux" + else echo -e "${red}Failed to check the OS version, please contact the author!${plain}" && exit 1 fi install_base() { case "${release}" in - centos | fedora) - yum install -y -q wget curl tar - ;; - *) - apt install -y -q wget curl tar - ;; + centos|fedora) + yum install -y -q wget curl tar + ;; + arch) + pacman -Syu --noconfirm wget curl tar + ;; + *) + apt install -y -q wget curl tar + ;; esac } + # This function will be called when user installed x-ui out of sercurity config_after_install() { echo -e "${yellow}Install/update finished! For security it's recommended to modify panel settings ${plain}" |
