Allow running pihole -g without root (run as user pihole)

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2023-01-24 19:51:01 +01:00
committed by Adam Warner
parent bf16fe4a37
commit 3695610300
2 changed files with 17 additions and 5 deletions

View File

@@ -912,7 +912,7 @@ gravity_ShowCount
# Determine if DNS has been restarted by this instance of gravity
if [[ -z "${dnsWasOffline:-}" ]]; then
"${PIHOLE_COMMAND}" restartdns reload
"${PIHOLE_COMMAND}" reloaddns
fi
gravity_Cleanup