mirror of
https://github.com/pi-hole/pi-hole.git
synced 2026-08-04 14:53:09 +00:00
If the system's /etc/logrotate.conf has dateext enabled (the upstream default, carried by most distros), our stanzas would inherit it when the system's scheduled logrotate reads them via that file - but our own forced runs invoke /etc/logrotate.d/pihole directly, bypassing logrotate.conf entirely, so they'd still use numeric suffixes. Same config, two different rotated filenames depending on who rotated it first. Set nodateext explicitly in each of our stanzas (scoped to just our own blocks, so it can't leak into other packages' logrotate.d entries) to keep this deterministic. Numeric suffixes also match what piholeLogFlush.sh's manual flush path already assumes (it looks for logfile.1 specifically). Signed-off-by: Adam Warner <me@adamwarner.co.uk> |
||
|---|---|---|
| .. | ||
| bash-completion | ||
| Scripts | ||
| Templates | ||