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 <dl6er@dl6er.de>
This commit is contained in:
DL6ER 2019-07-08 21:39:30 +02:00
parent 054c7a2c05
commit f5121c64be
No known key found for this signature in database
GPG key ID: 00135ACBD90B28DD

View file

@ -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