diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2024-01-19 17:58:09 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2024-01-19 17:58:09 +0300 |
| commit | 7fd4015f174e4c529612dfeee534fb1f2842ba7d (patch) | |
| tree | 926d14f8c978ee6af0a512754f9c89acb5e0dff2 | |
| parent | 589a8702aad5f882e3df261cc397a966ee09f674 (diff) | |
Update x-ui.sh
Fail2ban installation failed
| -rw-r--r-- | x-ui.sh | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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" |
