pi-hole/advanced/Scripts/piholeLogFlush.sh
ryt51V f02666ef6e Rerunning with sudo is now part of piholeInclude functions.
Changed piholeLogFlush.sh to run as root, not pihole.
2016-03-04 10:00:17 +00:00

17 lines
556 B
Bash
Executable file

#!/usr/bin/env bash
# Pi-hole: A black hole for Internet advertisements
# (c) 2015, 2016 by Jacob Salmela
# Network-wide ad blocking via your Raspberry Pi
# http://pi-hole.net
# Flushes /var/log/pihole.log
#
# 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.
source /usr/local/include/pihole/piholeInclude
rerun_root "$0" "$@"
truncate -s 0 /var/log/pihole.log