Merge pull request #2358 from pi-hole/fix/restart_FTl_on_logflush

Restart pihole-FTL after log flushing
pull/2367/head
Mark Drobnak 6 years ago committed by GitHub
commit 24e1c78d52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -58,6 +58,8 @@ else
# Delete most recent 24 hours from FTL's database, leave even older data intact (don't wipe out all history)
deleted=$(sqlite3 "${DBFILE}" "DELETE FROM queries WHERE timestamp >= strftime('%s','now')-86400; select changes() from queries limit 1")
# Restart pihole-FTL to force reloading history
sudo pihole restartdns
fi
if [[ "$@" != *"quiet"* ]]; then

Loading…
Cancel
Save