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>
This commit is contained in:
DL6ER 2020-02-17 21:07:48 +01:00
parent 082cfb2f1c
commit 52398052e9
No known key found for this signature in database
GPG key ID: FB60471F0575164A

View file

@ -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 ""