diff options
| author | mhsanaei <ho3ein.sanaei@gmail.com> | 2024-06-04 13:27:59 +0300 |
|---|---|---|
| committer | mhsanaei <ho3ein.sanaei@gmail.com> | 2024-06-04 13:34:27 +0300 |
| commit | 7ac79446c72a5c19319d5429e1a2dd40975ad060 (patch) | |
| tree | 9b781f7bae815fb56b8208ff6fe1439788cd3566 /x-ui.sh | |
| parent | fdf805f264dd8a5248f9006c5ad57e251673940f (diff) | |
(fixed) fail2ban - ubuntu 24
Diffstat (limited to 'x-ui.sh')
| -rw-r--r-- | x-ui.sh | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -1126,7 +1126,14 @@ install_iplimit() { # Check the OS and install necessary packages case "${release}" in - ubuntu | debian | armbian) + ubuntu) + if [[ "${os_version}" -ge 24 ]]; then + apt update && apt install python3-pip -y + python3 -m pip install pyasynchat --break-system-packages + fi + apt update && apt install fail2ban -y + ;; + debian | armbian) apt update && apt install fail2ban -y ;; centos | almalinux | rocky | oracle) @@ -1137,8 +1144,8 @@ install_iplimit() { dnf -y update && dnf -y install fail2ban ;; arch | manjaro | parch) - pacman -Syu --noconfirm fail2ban - ;; + pacman -Syu --noconfirm fail2ban + ;; *) echo -e "${red}Unsupported operating system. Please check the script and install the necessary packages manually.${plain}\n" exit 1 |
