mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
fix user blacklisting
This commit is contained in:
parent
d24b141d8b
commit
9c29bd627e
1 changed files with 3 additions and 4 deletions
|
@ -536,10 +536,9 @@ gravity_ParseUserDomains() {
|
|||
return 0
|
||||
fi
|
||||
|
||||
mv "${blacklistFile}" "${blackList}.tmp"
|
||||
# Copy the file over as /etc/pihole/black.list so dnsmasq can use it
|
||||
mv "${blackList}.tmp" "${blackList}" 2> /dev/null || \
|
||||
echo -e "\\n ${CROSS} Unable to move ${blackList##*/}.tmp to ${piholeDir}"
|
||||
cp "${blacklistFile}" "${blackList}" 2> /dev/null || \
|
||||
echo -e "\\n ${CROSS} Unable to move ${blacklistFile##*/} to ${piholeDir}"
|
||||
}
|
||||
|
||||
# Trap Ctrl-C
|
||||
|
|
Loading…
Reference in a new issue