From 2f9192cf413eb8401ff6a0f6e829f2ceafdb7b50 Mon Sep 17 00:00:00 2001 From: khodekhadem Date: Fri, 15 Mar 2024 02:02:16 +0330 Subject: [PATCH] add alpine linux (docker) to installation --- x-ui.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/x-ui.sh b/x-ui.sh index a94852f2..7614e95c 100644 --- a/x-ui.sh +++ b/x-ui.sh @@ -403,6 +403,9 @@ enable_bbr() { fedora) dnf -y update && dnf -y install ca-certificates ;; + alpine) + apk update && apk add ca-certificates + ;; *) echo -e "${red}Unsupported operating system. Please check the script and install the necessary packages manually.${plain}\n" exit 1 @@ -727,6 +730,9 @@ ssl_cert_issue() { fedora) dnf -y update && dnf -y install socat ;; + alpine) + apk update && apk add socat + ;; *) echo -e "${red}Unsupported operating system. Please check the script and install the necessary packages manually.${plain}\n" exit 1 @@ -1092,6 +1098,9 @@ install_iplimit() { fedora) dnf -y update && dnf -y install fail2ban ;; + apline) + apk update && apk add fail2ban + ;; *) echo -e "${red}Unsupported operating system. Please check the script and install the necessary packages manually.${plain}\n" exit 1 @@ -1171,6 +1180,9 @@ remove_iplimit() { dnf remove fail2ban -y dnf autoremove -y ;; + alpine) + apk del fail2ban + ;; *) echo -e "${red}Unsupported operating system. Please uninstall Fail2ban manually.${plain}\n" exit 1