pi-hole/advanced
Adam Warner cacc934300
Force nodateext so rotated log names don't depend on invocation path
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>
2026-07-07 14:34:01 +01:00
..
bash-completion add missing local variable 2025-10-15 04:37:19 +02:00
Scripts Stop double-rotating logs now that pihole is in /etc/logrotate.d 2026-07-07 13:40:38 +01:00
Templates Force nodateext so rotated log names don't depend on invocation path 2026-07-07 14:34:01 +01:00