|
|
@ -323,6 +323,8 @@ function gravity_reload() {
|
|
|
|
echo -n "::: Refresh lists in dnsmasq..."
|
|
|
|
echo -n "::: Refresh lists in dnsmasq..."
|
|
|
|
dnsmasqPid=$(pidof dnsmasq)
|
|
|
|
dnsmasqPid=$(pidof dnsmasq)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
find "$piholeDir" -type f -exec $SUDO chmod 666 {} \; & spinner $!
|
|
|
|
|
|
|
|
|
|
|
|
if [[ $dnsmasqPid ]]; then
|
|
|
|
if [[ $dnsmasqPid ]]; then
|
|
|
|
# service already running - reload config
|
|
|
|
# service already running - reload config
|
|
|
|
$SUDO kill -HUP $dnsmasqPid & spinner $!
|
|
|
|
$SUDO kill -HUP $dnsmasqPid & spinner $!
|
|
|
|