Cleanup (v1.0.1)
This commit is contained in:
1 parent
76eb8b336d
commit
a43d851c14
1 file changed
+1
-6
+1
-6
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
###
|
###
|
||||||
# https://github.com/sefinek24/UFW-AbuseIPDB-Reporter
|
# https://github.com/sefinek24/UFW-AbuseIPDB-Reporter
|
||||||
# Version v1.0.0 from 06.09.2024 [DD.MM.YYYY]
|
# Version v1.0.1 from 14.09.2024 [DD.MM.YYYY]
|
||||||
##
|
##
|
||||||
|
|
||||||
LOG_FILE="/var/log/ufw.log"
|
LOG_FILE="/var/log/ufw.log"
|
||||||
@@ -210,11 +210,6 @@ process_log_line() {
|
|||||||
|
|
||||||
load_reported_ips
|
load_reported_ips
|
||||||
|
|
||||||
if ! command -v jq &> /dev/null; then
|
|
||||||
log "ERROR" "jq is not installed. Please install jq to run this script."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
log "INFO" "Starting to monitor $LOG_FILE"
|
log "INFO" "Starting to monitor $LOG_FILE"
|
||||||
|
|
||||||
tail -Fn0 "$LOG_FILE" | while read -r line; do
|
tail -Fn0 "$LOG_FILE" | while read -r line; do
|
||||||
|
|||||||
Reference in new issue
Block a user