From 83223b7a59cc447a175b52055f339cea8a1fd44e Mon Sep 17 00:00:00 2001 From: Brian Flowers Date: Mon, 25 May 2020 20:30:25 -0400 Subject: [PATCH] Added creation of pid directory to setup routine --- bin/firewall-lists | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/firewall-lists b/bin/firewall-lists index 1e1c731..f7dd8d4 100755 --- a/bin/firewall-lists +++ b/bin/firewall-lists @@ -19,8 +19,7 @@ ############################################################################### #config_path -- the path of firewall-lists configuration (usually under etc) -#onfig_path="/home/USERNAME/etc/firewall-lists" -config_path="/home/urza9814/etc/firewall-lists-3" +onfig_path="/home/USERNAME/etc/firewall-lists" # lookup_threats -- maximum number of live nslookup connections lookup_threads=50 @@ -202,6 +201,7 @@ EOF setup() { info "Creating tables (if necessary) at $config_path/firewall-lists.sqlite..." + mkdir -p "$config_path/pids" sqlite3 "$config_path/firewall-lists.sqlite" "SELECT 1 FROM nameservers;" >/dev/null 2>&1 if [ $? -eq 1 ]; then sqlite3 "$config_path/firewall-lists.sqlite"<