mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-09-08 03:06:19 +00:00
Update x-ui.sh
This commit is contained in:
parent
a10c593e0c
commit
bc1f3f7c25
1 changed files with 10 additions and 6 deletions
16
x-ui.sh
16
x-ui.sh
|
@ -51,13 +51,17 @@ elif [[ "${release}" == "fedora" ]]; then
|
||||||
echo -e "${red}please use Fedora 36 or higher version! ${plain}\n" && exit 1
|
echo -e "${red}please use Fedora 36 or higher version! ${plain}\n" && exit 1
|
||||||
fi
|
fi
|
||||||
elif [[ "${release}" == "debian" ]]; then
|
elif [[ "${release}" == "debian" ]]; then
|
||||||
if [[ ${os_version} -lt 10 ]]; then
|
if [[ ${os_version} -lt 11 ]]; then
|
||||||
echo -e "${red} Please use Debian 10 or higher ${plain}\n" && exit 1
|
echo -e "${red} Please use Debian 11 or higher ${plain}\n" && exit 1
|
||||||
fi
|
fi
|
||||||
elif [[ "${release}" == "almalinux" ]]; then
|
elif [[ "${release}" == "almalinux" ]]; then
|
||||||
if [[ ${os_version} -lt 9 ]]; then
|
if [[ ${os_version} -lt 9 ]]; then
|
||||||
echo -e "${red} Please use Almalinux 9 or higher ${plain}\n" && exit 1
|
echo -e "${red} Please use Almalinux 9 or higher ${plain}\n" && exit 1
|
||||||
fi
|
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
|
elif [[ "${release}" == "arch" ]]; then
|
||||||
echo "Your OS is ArchLinux"
|
echo "Your OS is ArchLinux"
|
||||||
elif [[ "${release}" == "manjaro" ]]; then
|
elif [[ "${release}" == "manjaro" ]]; then
|
||||||
|
@ -347,7 +351,7 @@ enable_bbr() {
|
||||||
ubuntu|debian)
|
ubuntu|debian)
|
||||||
apt-get update && apt-get install -yqq --no-install-recommends ca-certificates
|
apt-get update && apt-get install -yqq --no-install-recommends ca-certificates
|
||||||
;;
|
;;
|
||||||
centos)
|
centos|almalinux|rocky)
|
||||||
yum -y update && yum -y install ca-certificates
|
yum -y update && yum -y install ca-certificates
|
||||||
;;
|
;;
|
||||||
fedora)
|
fedora)
|
||||||
|
@ -609,7 +613,7 @@ ssl_cert_issue() {
|
||||||
case "${release}" in
|
case "${release}" in
|
||||||
ubuntu|debian|armbian)
|
ubuntu|debian|armbian)
|
||||||
apt update && apt install socat -y ;;
|
apt update && apt install socat -y ;;
|
||||||
centos)
|
centos|almalinux|rocky)
|
||||||
yum -y update && yum -y install socat ;;
|
yum -y update && yum -y install socat ;;
|
||||||
fedora)
|
fedora)
|
||||||
dnf -y update && dnf -y install socat ;;
|
dnf -y update && dnf -y install socat ;;
|
||||||
|
@ -979,7 +983,7 @@ install_iplimit() {
|
||||||
case "${release}" in
|
case "${release}" in
|
||||||
ubuntu|debian)
|
ubuntu|debian)
|
||||||
apt update && apt install fail2ban -y ;;
|
apt update && apt install fail2ban -y ;;
|
||||||
centos)
|
centos|almalinux|rocky)
|
||||||
yum -y update && yum -y install fail2ban ;;
|
yum -y update && yum -y install fail2ban ;;
|
||||||
fedora)
|
fedora)
|
||||||
dnf -y update && dnf -y install fail2ban ;;
|
dnf -y update && dnf -y install fail2ban ;;
|
||||||
|
@ -1042,7 +1046,7 @@ remove_iplimit(){
|
||||||
case "${release}" in
|
case "${release}" in
|
||||||
ubuntu|debian)
|
ubuntu|debian)
|
||||||
apt-get purge fail2ban -y;;
|
apt-get purge fail2ban -y;;
|
||||||
centos)
|
centos|almalinux|rocky)
|
||||||
yum remove fail2ban -y;;
|
yum remove fail2ban -y;;
|
||||||
fedora)
|
fedora)
|
||||||
dnf remove fail2ban -y;;
|
dnf remove fail2ban -y;;
|
||||||
|
|
Loading…
Reference in a new issue