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

Commas in template are ignoring. How to use the enumeration? #109

Open
v3n1kk opened this issue Jul 8, 2022 · 1 comment
Open

Commas in template are ignoring. How to use the enumeration? #109

v3n1kk opened this issue Jul 8, 2022 · 1 comment

Comments

@v3n1kk
Copy link

v3n1kk commented Jul 8, 2022

Hello! How can I use comma into cronjob? I just want to enumerate some dates in the schedule.
For example, this is my erb template:

some_cronjob:
minute: 0
hour: 0
date: 1,16
command: "some_command"

And I got this:

0 0 116 * * root some_command

Commas are ignored. I just need to enumerate days.
What do i need? Thanks for answer in advance!

@bschonec
Copy link

@v3n1kk specify the date as an array eg: ['1', '16']

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

No branches or pull requests

2 participants