Commit Graph

9 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
5cf228d4a0 Add side by side UI form buttons API
Some checks failed
webmin.dev: webmin/webmin / build (push) Has been cancelled
https://github.com/webmin/webmin/issues/2659

[no-build]
2026-04-09 19:33:37 +02:00
iliajie
d49eaccb60 Add support for cloning log rotate job 2022-09-06 14:59:12 +03:00
Jamie Cameron
b1e11d360d Fix version detection to deal with numbers like 3.14 https://forum.virtualmin.com/t/modsec-audit-log-impervious-to-log-file-rotation-settings/116142/4 2022-07-24 13:10:15 -07:00
Jamie Cameron
0b733047f3 Allow setting min size to rotate https://sourceforge.net/p/webadmin/bugs/4502/ 2014-11-07 12:25:32 -08:00
Mads Mætzke Tandrup
d1ffdb834e Support dateext option in logrotate module 2013-09-30 12:53:32 +02:00
Jamie Cameron
9ccd2eb390 make bytes obvious 2008-03-10 00:06:44 +00:00
Jamie Cameron
b6f4913eae Fixed email field disable bug 2007-05-16 21:13:28 +00:00
Jamie Cameron
fc1c1b243f Initial checkin of Webmin 2007-04-12 20:24:50 +00:00