1
0
mirror of https://github.com/pi-hole/pi-hole synced 2025-01-21 21:40:55 +00:00

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

Restart pihole-FTL after log flushing
This commit is contained in:
Mark Drobnak 2018-08-16 10:34:25 -04:00 committed by GitHub
commit 24e1c78d52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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