mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-03-25 17:51:29 +00:00
Merge pull request #3033 from pi-hole/fix/duplicates_in_adlists
Remove duplicates from adlists before importing
This commit is contained in:
commit
2cec9eaf65
1 changed files with 3 additions and 2 deletions
|
@ -160,10 +160,11 @@ database_table_from_file() {
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
inputfile="${tmpFile}"
|
inputfile="${tmpFile}"
|
||||||
|
|
||||||
|
# Remove possible duplicates found in lower-quality adlists
|
||||||
|
sort -u -o "${inputfile}" "${inputfile}"
|
||||||
|
|
||||||
# Store domains in database table specified by ${table}
|
# Store domains in database table specified by ${table}
|
||||||
# Use printf as .mode and .import need to be on separate lines
|
# Use printf as .mode and .import need to be on separate lines
|
||||||
# see https://unix.stackexchange.com/a/445615/83260
|
# see https://unix.stackexchange.com/a/445615/83260
|
||||||
|
|
Loading…
Add table
Reference in a new issue