Change implementation to use linking tables (domain_groups, adlists_groups). This allows adding domains to multiple lists conveniently.

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2019-06-30 18:58:47 +02:00
parent 27e4208631
commit 87c115fc86
2 changed files with 70 additions and 53 deletions

View File

@@ -120,7 +120,7 @@ database_table_from_file() {
do
# Only add non-empty lines
if [[ ! -z "${domain}" ]]; then
echo "${rowid},\"${domain}\",1,${timestamp},${timestamp},0,\"Migrated from ${source}\"" >> "${tmpFile}"
echo "${rowid},\"${domain}\",1,${timestamp},${timestamp},\"Migrated from ${source}\"" >> "${tmpFile}"
rowid+=1
fi
done