Merge pull request #2531 from pi-hole/fix/duplicate_dont_destroy

Don't `mv` `preEventHorizon`, copy it.
This commit is contained in:
Dan Schaper 2018-12-06 08:40:02 -08:00 committed by GitHub
commit 0546fff1ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -579,7 +579,7 @@ gravity_ParseBlacklistDomains() {
mv "${piholeDir}/${whitelistMatter}" "${piholeDir}/${accretionDisc}"
else
# There was no whitelist file, so use preEventHorizon instead of whitelistMatter.
mv "${piholeDir}/${preEventHorizon}" "${piholeDir}/${accretionDisc}"
cp "${piholeDir}/${preEventHorizon}" "${piholeDir}/${accretionDisc}"
fi
# Move the file over as /etc/pihole/gravity.list so dnsmasq can use it