Commit Graph

5 Commits

Author SHA1 Message Date
Ilia Ross
466f499e65 Fix openSUSE logrotate vendor overlay handling
This PR updates the Log File Rotation module for openSUSE Leap 16's split `/usr/etc` and `/etc` configuration model.

- Select the local main configuration when present, otherwise use the vendor configuration.

- Recursively merge vendor and local drop-ins using the same precedence as `logrotate-all`.

- Display vendor configurations while keeping `/usr/etc` read-only.

- Copy vendor files into matching `/etc` overrides before editing or deleting them.

- Preserve empty overrides so deleted vendor rotations remain disabled.

- Use the openSUSE wrapper for scheduled rotation and the effective configuration set for forced rotation.

- Keep behavior unchanged on distributions that do not enable the vendor overlay.

Includes regression coverage for selection, precedence, copy-on-write, deletion, scheduling, backups, and protection against direct vendor writes.

Closes [#2682](https://github.com/webmin/webmin/issues/2682).
2026-08-03 02:36:05 +02:00
Ilia Ross
782332dae7 Fix OpenSUSE logrotate drop-in discovery #2682 2026-08-03 01:39:05 +02:00
Ilia Rostovtsev
66ac2ba10f Fix false positive error outputs
https://forum.virtualmin.com/t/force-logrotate-fails/107301
2020-08-31 16:06:22 +03:00
Jamie Cameron
f9343b47dc Clean envs before running logrotate, so any Webmin scripts don't pick them up 2009-01-12 18:19:59 +00:00
Jamie Cameron
fc1c1b243f Initial checkin of Webmin 2007-04-12 20:24:50 +00:00