clear banned log after unban everyone

This commit is contained in:
MHSanaei 2024-01-21 04:45:17 +03:30
parent 820e302aac
commit 4b9bbbc34b

View file

@ -970,6 +970,7 @@ iplimit_main() {
confirm "Proceed with Unbanning everyone from IP Limit jail?" "y" confirm "Proceed with Unbanning everyone from IP Limit jail?" "y"
if [[ $? == 0 ]]; then if [[ $? == 0 ]]; then
fail2ban-client reload --restart --unban 3x-ipl fail2ban-client reload --restart --unban 3x-ipl
truncate -s 0 "${iplimit_banned_log_path}"
echo -e "${green}All users Unbanned successfully.${plain}" echo -e "${green}All users Unbanned successfully.${plain}"
iplimit_main iplimit_main
else else