diff options
| author | quydang <81231812+quydang04@users.noreply.github.com> | 2024-01-12 11:15:46 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-12 11:15:46 +0300 |
| commit | 491f7aecef485bb503b1a7c9762f2d08f238248e (patch) | |
| tree | 335ac1f64f7806565d7c1aff89c37ac24a83db1b /x-ui.sh | |
| parent | 590a8f07b9c9677240eb77f63afe23917f00993d (diff) | |
A few updates (#1566)
* Update install.sh
* Update x-ui.sh
* Update README.md
Diffstat (limited to 'x-ui.sh')
| -rw-r--r-- | x-ui.sh | 16 |
1 files changed, 10 insertions, 6 deletions
@@ -51,13 +51,17 @@ elif [[ "${release}" == "fedora" ]]; then echo -e "${red}please use Fedora 36 or higher version! ${plain}\n" && exit 1 fi elif [[ "${release}" == "debian" ]]; then - if [[ ${os_version} -lt 10 ]]; then - echo -e "${red} Please use Debian 10 or higher ${plain}\n" && exit 1 + if [[ ${os_version} -lt 11 ]]; then + echo -e "${red} Please use Debian 11 or higher ${plain}\n" && exit 1 fi elif [[ "${release}" == "almalinux" ]]; then if [[ ${os_version} -lt 9 ]]; then echo -e "${red} Please use Almalinux 9 or higher ${plain}\n" && exit 1 fi +elif [[ "${release}" == "rocky" ]]; then + if [[ ${os_version} -lt 9 ]]; then + echo -e "${red} Please use Rockylinux 9 or higher ${plain}\n" && exit 1 + fi elif [[ "${release}" == "arch" ]]; then echo "Your OS is ArchLinux" elif [[ "${release}" == "manjaro" ]]; then @@ -347,7 +351,7 @@ enable_bbr() { ubuntu|debian) apt-get update && apt-get install -yqq --no-install-recommends ca-certificates ;; - centos) + centos|almalinux|rocky) yum -y update && yum -y install ca-certificates ;; fedora) @@ -609,7 +613,7 @@ ssl_cert_issue() { case "${release}" in ubuntu|debian|armbian) apt update && apt install socat -y ;; - centos) + centos|almalinux|rocky) yum -y update && yum -y install socat ;; fedora) dnf -y update && dnf -y install socat ;; @@ -979,7 +983,7 @@ install_iplimit() { case "${release}" in ubuntu|debian) apt update && apt install fail2ban -y ;; - centos) + centos|almalinux|rocky) yum -y update && yum -y install fail2ban ;; fedora) dnf -y update && dnf -y install fail2ban ;; @@ -1042,7 +1046,7 @@ remove_iplimit(){ case "${release}" in ubuntu|debian) apt-get purge fail2ban -y;; - centos) + centos|almalinux|rocky) yum remove fail2ban -y;; fedora) dnf remove fail2ban -y;; |
