From 1b51b9ade358bcf6995a83d7a40e5ddb172d36a7 Mon Sep 17 00:00:00 2001
From: Jacob Salmela <jacobsalmela@users.noreply.github.com>
Date: Thu, 5 Nov 2015 14:31:38 -0600
Subject: [PATCH] for use as a cron job

The log will be flushed daily and stats will be stored in a DB for
displaying on the Web interface.
---
 advanced/Scripts/piholeLogFlush.sh | 3 +++
 1 file changed, 3 insertions(+)
 create mode 100755 advanced/Scripts/piholeLogFlush.sh

diff --git a/advanced/Scripts/piholeLogFlush.sh b/advanced/Scripts/piholeLogFlush.sh
new file mode 100755
index 00000000..9647fe2c
--- /dev/null
+++ b/advanced/Scripts/piholeLogFlush.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+# Flushes /var/log/pihole.log
+truncate -s 0 /var/log/pihole.log