소스 검색

clear banned log after unban everyone

MHSanaei 1 년 전
부모
커밋
4b9bbbc34b
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      x-ui.sh

+ 1 - 0
x-ui.sh

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