__cron create multiple entrys if only command is changed #242

Closed
opened 2021-11-20 15:22:19 +00:00 by ungleich-gitea · 1 comment

Created by: dheule

If in a __cron entry only the path to the command is changed, the type creates more than one entry which is false.

for example:

  1. run with this manifest:
    __cron test --user root --command "/bin/echo test"
  2. run with this manifest:
    __cron test --user root --command "/usr/bin/echo test"

will result in following cron tab:

  • * * * * /bin/echo test # __cron/test
  • * * * * /usr/bin/echo test # __cron/test

p.s. i will submit a fix soon

*Created by: dheule* If in a __cron entry only the path to the command is changed, the type creates more than one entry which is false. for example: 1. run with this manifest: __cron test --user root --command "/bin/echo test" 2. run with this manifest: __cron test --user root --command "/usr/bin/echo test" will result in following cron tab: - \* \* \* \* /bin/echo test # __cron/test - \* \* \* \* /usr/bin/echo test # __cron/test p.s. i will submit a fix soon
Author
Owner

Created by: dheule

Fixed

*Created by: dheule* Fixed
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ungleich-public/cdist#242
No description provided.