From 7ddd4e5660422368b9a14b157beaea5645b0a079 Mon Sep 17 00:00:00 2001 From: Hiradpi <78161225+Hiradpi@users.noreply.github.com> Date: Sun, 6 Aug 2023 15:11:08 +0330 Subject: [PATCH] Update install.sh Arch linux support added --- install.sh | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/install.sh b/install.sh index 653fe979..668a50df 100644 --- a/install.sh +++ b/install.sh @@ -53,21 +53,29 @@ 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 + if [false]; then + echo -e "${red} Please use Debian 10 or higher ${plain}\n" && exit 1 + fi 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}"