Compute number of domains (and store it in the database) BEFORE calling FTL to re-read said value.

Signed-off-by: DL6ER <dl6er@dl6er.de>
pull/3139/head
DL6ER 4 years ago
parent 082cfb2f1c
commit 52398052e9
No known key found for this signature in database
GPG Key ID: FB60471F0575164A

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

Loading…
Cancel
Save