e5981669d8
Fixed sorting, added --sort argument.
2019-03-05 23:46:50 -08:00
7152766ca1
Fixed bug where db_creation_date_key was never found in the db keys.
2019-03-05 20:09:34 -08:00
Enrico Tagliavini
39283554b6
Merge pull request #2 from ethauvin/master
...
Add --quiet option, ensure time is always stored in UTC but reported in local timezone in the digest
2019-02-26 09:36:26 +01:00
7f3892f556
Event dates are now stored in UTC, and printed/mailed using the local timezone.
2019-02-25 13:02:14 -08:00
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
538e38dbcb
Fix naming in README.md
2017-08-25 10:26:07 +02: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
c10b8a6c94
Given an example of system folder in README
2017-06-23 11:43:02 +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
Enrico Tagliavini
84e11044c8
move LICENSE to COPYING
2017-06-23 11:41:54 +02:00
Enrico Tagliavini
1f130fb3b9
Initial commit
2017-05-15 16:36:22 +02:00