mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-09-09 19:56:19 +00:00
add alpine linux (docker) to installation
This commit is contained in:
parent
2b420bd517
commit
2f9192cf41
1 changed files with 12 additions and 0 deletions
12
x-ui.sh
12
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
|
||||
|
|
Loading…
Reference in a new issue