mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-02-20 10:16:51 +00:00
Save summary log before clearing tables
This commit is contained in:
parent
535f34f200
commit
ee73af2504
1 changed files with 3 additions and 0 deletions
3
pihole
3
pihole
|
@ -43,6 +43,9 @@ function debugFunc {
|
|||
}
|
||||
|
||||
function flushFunc {
|
||||
echo "::: Saving current summary..."
|
||||
python /opt/pihole/summaryDB.py
|
||||
echo "::: Flushing queries from database..."
|
||||
sqlite3 /etc/pihole/pihole.db "DROP TABLE IF EXISTS queries"
|
||||
sqlite3 /etc/pihole/pihole.db "DROP TABLE IF EXISTS forwards"
|
||||
sqlite3 /etc/pihole/pihole.db "DROP TABLE IF EXISTS replies"
|
||||
|
|
Loading…
Add table
Reference in a new issue