Fix logrotation: manual flushing should be done twice, but automated rotation at midnight should only be done *once*!

This commit is contained in:
DL6ER 2017-05-17 12:44:35 +02:00
parent ed04be5faa
commit 4e2c6a7b8e
No known key found for this signature in database
GPG key ID: 00135ACBD90B28DD
3 changed files with 28 additions and 12 deletions

4
pihole
View file

@ -61,7 +61,7 @@ debugFunc() {
}
flushFunc() {
"${PI_HOLE_SCRIPT_DIR}"/piholeLogFlush.sh
"${PI_HOLE_SCRIPT_DIR}"/piholeLogFlush.sh "$@"
exit 0
}
@ -353,7 +353,7 @@ case "${1}" in
"-b" | "blacklist" ) blacklistFunc "$@";;
"-wild" | "wildcard" ) wildcardFunc "$@";;
"-d" | "debug" ) debugFunc "$@";;
"-f" | "flush" ) flushFunc;;
"-f" | "flush" ) flushFunc "$@";;
"-up" | "updatePihole" ) updatePiholeFunc;;
"-r" | "reconfigure" ) reconfigurePiholeFunc;;
"-g" | "updateGravity" ) updateGravityFunc "$@";;