Closed ardentsword closed 1 year ago
Is it a breaking change?
It is not breaking for the config, but it is indeed breaking in that it duplicates the rules if they are already there. I could write some code to check for duplicates and remove those 'outside' of the section, would that be the preferred solution?
Yes, lets try this.
I added the new code, let me know what you think of it :)
@ardentsword thank you for the rewrite. It makes working with crontab much smoother and structured. Great work!
@SimJoSt Thanks, you're welcome, glad to hear it is getting used :)
Rewrite of the crontab contrib recipe. It creates a 'section' in the crontab without modifying the original crontab (before the whole crontab was wiped). If the cronjobs are modified it only touches the section. This removes the need to remove old 'unused' cronjobs when changing the command.