|
|
@ -760,14 +760,14 @@ gravity_swap_databases
|
|
|
|
chown pihole:pihole "${gravityDBfile}"
|
|
|
|
chown pihole:pihole "${gravityDBfile}"
|
|
|
|
chmod g+w "${piholeDir}" "${gravityDBfile}"
|
|
|
|
chmod g+w "${piholeDir}" "${gravityDBfile}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Compute numbers to be displayed
|
|
|
|
|
|
|
|
gravity_ShowCount
|
|
|
|
|
|
|
|
|
|
|
|
# Determine if DNS has been restarted by this instance of gravity
|
|
|
|
# Determine if DNS has been restarted by this instance of gravity
|
|
|
|
if [[ -z "${dnsWasOffline:-}" ]]; then
|
|
|
|
if [[ -z "${dnsWasOffline:-}" ]]; then
|
|
|
|
"${PIHOLE_COMMAND}" restartdns reload
|
|
|
|
"${PIHOLE_COMMAND}" restartdns reload
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# Compute numbers to be displayed
|
|
|
|
|
|
|
|
gravity_ShowCount
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
gravity_Cleanup
|
|
|
|
gravity_Cleanup
|
|
|
|
echo ""
|
|
|
|
echo ""
|
|
|
|
|
|
|
|
|
|
|
|