From 52398052e911edfe73fb15b5a18f601cfd636ed5 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Mon, 17 Feb 2020 21:07:48 +0100 Subject: [PATCH] Compute number of domains (and store it in the database) BEFORE calling FTL to re-read said value. Signed-off-by: DL6ER --- gravity.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gravity.sh b/gravity.sh index f4cbe78d..50ae3883 100755 --- a/gravity.sh +++ b/gravity.sh @@ -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 ""