mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-02-22 11:08:21 +00:00
Tested 6 different codes to flush the script, this was the only one I was able to come up with that did not stop the queries from freezing on the LCD or if letting the script run before and then after the flush cron runs.
11 lines
383 B
Bash
Executable file
11 lines
383 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# Flushes /var/log/pihole.log
|
|
# (c) 2015 by Jacob Salmela
|
|
# This file is part of Pi-hole.
|
|
#
|
|
#Pi-hole is free software: you can redistribute it and/or modify
|
|
#it under the terms of the GNU General Public License as published by
|
|
#the Free Software Foundation, either version 2 of the License, or
|
|
#(at your option) any later version.
|
|
|
|
echo " " > /var/log/pihole.log
|