Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add ability for multiple entry paths and postrotate commands #16

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

tazend
Copy link

@tazend tazend commented Jun 27, 2023

Hi,

this branch is based on #8 which fixes the unnecessary blank lines the current template produces.

Describe the change
This branch also adds the ability to specify a list for the path and postrotate variable, as having multiple paths and postrotate-commands is perfectly fine in logrotate.
It is however still possible to simply specify a single string as before (just to not break existing setups) - necessary checks where added in assert.yml (Fixes #15)

Testing
I checked the result produced by the template and it looked fine, both for multiple and single paths/postrotate commands.

antofthy and others added 3 commits June 22, 2023 14:02
Update template to remove the multitude of unneeded blank lines
while maintaining easy to read structure.
With this change, `path` and `postrotate` can additionally be a list of
strings (as it is valid with logrotate to supply multiple postrotate
commands or file entries).
Specifying just a string as it was before is still possible.
@danrough
Copy link

@tazend it has been a while since you authored this PR. Are you still hoping to have it merged, or have you moved onto a different solution? I'm asking because I've just discovered @robertdebock's role, and I have the same requirement that you did when you raised this change - to be able to specify entry path as a list in addition to being able to specify a single item.

If you're not wishing to pursue this any further, I will add the functionality myself in a separate PR, in the hope that it will get merged. Thanks!

@tazend
Copy link
Author

tazend commented May 24, 2024

@danrough I still hope to have it merged at some point. At the moment I just use the branch of my fork where its implemented.
I'll try to fix the merge conflicts in this PR though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow specifying multiple paths and postrotate commands for a logrotate entry
3 participants