From 8cb2f85a08134d70e3eb022395de763faa9d0a42 Mon Sep 17 00:00:00 2001 From: Adam Warner Date: Fri, 2 Sep 2016 16:39:34 +0100 Subject: [PATCH] Replace `truncate` command with `echo " " >` --- advanced/Scripts/piholeLogFlush.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/advanced/Scripts/piholeLogFlush.sh b/advanced/Scripts/piholeLogFlush.sh index db97f8cb..8b16e3d5 100755 --- a/advanced/Scripts/piholeLogFlush.sh +++ b/advanced/Scripts/piholeLogFlush.sh @@ -11,5 +11,5 @@ # (at your option) any later version. echo -n "::: Flushing /var/log/pihole.log ..." -truncate -s 0 /var/log/pihole.log +echo " " > /var/log/pihole.log echo "... done!"