Update x-ui.sh

Fail2ban installation failed
This commit is contained in:
MHSanaei 2024-01-19 18:28:09 +03:30
parent 589a8702aa
commit 7fd4015f17

View file

@ -991,6 +991,12 @@ install_iplimit() {
echo -e "${red}Unsupported operating system. Please check the script and install the necessary packages manually.${plain}\n"
exit 1 ;;
esac
if ! command -v fail2ban-client &>/dev/null; then
echo -e "${red}Fail2ban installation failed.${plain}\n"
exit 1
fi
echo -e "${green}Fail2ban installed successfully!${plain}\n"
else
echo -e "${yellow}Fail2ban is already installed.${plain}\n"