mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
Set file permisions on /etc/pihole
Ensures file permisions on $piholeDir before reload/restart of dnsmasq
This commit is contained in:
parent
255706e173
commit
73bfbba5f7
1 changed files with 2 additions and 0 deletions
|
@ -321,6 +321,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 $!
|
||||||
|
|
Loading…
Reference in a new issue