From ba00ff873c0fe5c75e0f544df90565ddce58a3b9 Mon Sep 17 00:00:00 2001 From: Axtux Date: Wed, 12 Feb 2020 09:23:07 +0100 Subject: [PATCH 1/2] only remove extrema dots --- bin/pdns-ingestion.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/pdns-ingestion.py b/bin/pdns-ingestion.py index aafb56a..e5ca3a2 100644 --- a/bin/pdns-ingestion.py +++ b/bin/pdns-ingestion.py @@ -81,8 +81,7 @@ def process_format_passivedns(line=None): for r in v: # trailing dot is removed and avoid case sensitivity if i == 4 or i == 6: - r = r[:-1] - r = r.lower() + r = r.lower().strip('.') # timestamp is just epoch - second precision is only required if i == 0: r = r.split('.')[0] From c09ef66bc09b7234eaa9fe6f3a386847a84cd16b Mon Sep 17 00:00:00 2001 From: Axtux Date: Wed, 12 Feb 2020 10:35:39 +0100 Subject: [PATCH 2/2] create db directory and correct path --- etc/redis.conf | 2 +- install_server.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/etc/redis.conf b/etc/redis.conf index 62a6d49..0a375fa 100644 --- a/etc/redis.conf +++ b/etc/redis.conf @@ -260,7 +260,7 @@ dbfilename dump.rdb # The Append Only File will also be created inside this directory. # # Note that you must specify a directory here, not a file name. -dir ../db +dir ./db ################################# REPLICATION ################################# diff --git a/install_server.sh b/install_server.sh index 453000b..2283293 100755 --- a/install_server.sh +++ b/install_server.sh @@ -14,6 +14,7 @@ fi python3 -m pip install -r requirements # REDIS # +mkdir -p db test ! -d redis/ && git clone https://github.com/antirez/redis.git pushd redis/ git checkout 5.0