mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
Update gravity.sh
Fix kill command and only run as last step.
This commit is contained in:
parent
3cdce17d28
commit
a6313c9e9e
1 changed files with 7 additions and 1 deletions
|
@ -239,8 +239,13 @@ function gravity_advanced() {
|
|||
echo "** $numberOf domains being pulled in by gravity..."
|
||||
|
||||
gravity_unique
|
||||
}
|
||||
|
||||
sudo kill -s -HUP $(pidof dnsmasq)
|
||||
function gravity_reload() {
|
||||
# Reload hosts file
|
||||
|
||||
echo "** Refresh lists in dnsmasq..."
|
||||
sudo kill -HUP $(pidof dnsmasq)
|
||||
}
|
||||
|
||||
gravity_collapse
|
||||
|
@ -250,3 +255,4 @@ gravity_pulsar
|
|||
gravity_advanced
|
||||
gravity_hostFormat
|
||||
gravity_blackbody
|
||||
gravity_reload
|
||||
|
|
Loading…
Reference in a new issue