mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-23 21:30:17 +00:00
cp + rm === mv (well, almost)
This commit is contained in:
parent
e4cc5b3847
commit
05798fe07a
1 changed files with 2 additions and 4 deletions
|
@ -338,8 +338,7 @@ gravity_hostFormatGravity() {
|
|||
echo "" > "${piholeDir}/${accretionDisc}"
|
||||
gravity_doHostFormat "${piholeDir}/${eventHorizon}" "${piholeDir}/${accretionDisc}"
|
||||
# Copy the file over as /etc/pihole/gravity.list so dnsmasq can use it
|
||||
cp "${piholeDir}/${accretionDisc}" "${adList}"
|
||||
rm "${piholeDir}/${accretionDisc}"
|
||||
mv "${piholeDir}/${accretionDisc}" "${adList}"
|
||||
}
|
||||
|
||||
gravity_hostFormatBlack() {
|
||||
|
@ -348,8 +347,7 @@ gravity_hostFormatBlack() {
|
|||
# Format domain list as "192.168.x.x domain.com"
|
||||
gravity_doHostFormat "${blacklistFile}" "${blackList}.tmp"
|
||||
# Copy the file over as /etc/pihole/black.list so dnsmasq can use it
|
||||
cp "${blackList}.tmp" "${blackList}"
|
||||
rm "${blackList}.tmp"
|
||||
mv "${blackList}.tmp" "${blackList}"
|
||||
else
|
||||
echo "::: Nothing to blacklist!"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue