From f5121c64be312a0c4c900383d882f20cccdb8a6d Mon Sep 17 00:00:00 2001 From: DL6ER Date: Mon, 8 Jul 2019 21:39:30 +0200 Subject: [PATCH] We should still add the regex lines (initially) to the regex table as the renaming will happen only after the importing. Signed-off-by: DL6ER --- gravity.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gravity.sh b/gravity.sh index a379e248..f9ecc1d1 100755 --- a/gravity.sh +++ b/gravity.sh @@ -182,8 +182,10 @@ migrate_to_database() { fi if [ -e "${regexFile}" ]; then # Store regex domains in database + # Important note: We need to add the domains to the "regex" table + # as it will only later be renamed to "regex_blacklist"! echo -e " ${INFO} Migrating content of ${regexFile} into new database" - database_table_from_file "regex_blacklist" "${regexFile}" + database_table_from_file "regex" "${regexFile}" fi fi