1
0
Fork 0
mirror of https://github.com/ethauvin/fail2ban-digest.git synced 2025-04-26 10:58:12 -07:00
Commit graph

7 commits

Author SHA1 Message Date
01beb565d1 Converted dates in mail_digest to local timezone. 2019-02-24 22:31:01 -08:00
25365b3a06 Added --quiet argument. 2019-02-24 22:22:21 -08:00
Enrico Tagliavini
45eaab6f60 Add cosmetic message when no even is recorded 2017-06-23 11:43:19 +02:00
Enrico Tagliavini
ad8670c376 create a new empty database when deleting the old one
when --delete is used we should leave an empty database in place. If
fail2ban_digest is used via cron the missing DB will cause an error to
be triggered and the admin will be mailed because one cron job failed,
which is not the case actually
2017-06-23 11:43:14 +02:00
Enrico Tagliavini
0cfe4f940e better handle missing dbm file, print better error
Using the dbm module with autodetection is quite broken. Opening a dbm
file with 'r' flag will raise a useless dbm.error, not inherinting
OSError. The reason for the error is lost. When forcing GNU dbm module a
proper exception is raised.
2017-06-23 11:43:10 +02:00
Enrico Tagliavini
c7ca780df8 use dest argument for add_subparser
Instead of setting the value of cmd arg by default use the dest
variable. Also check if no argument is given on command line
2017-06-23 11:42:53 +02:00
Enrico Tagliavini
3066a12a4f publish to github 2017-06-23 11:42:34 +02:00