-
Notifications
You must be signed in to change notification settings - Fork 58
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
Enable scheduling of autoupdate with a cron like syntax brew autoupdate subcommand [schedule/interval] [options]
#119
base: master
Are you sure you want to change the base?
Conversation
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
not stale |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
not stale |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
not stale |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Solves issue: #59
You know have the option to pass a
cron
like schedule definition to thestart
command instead of an interval.The main goal was to provide a fix for skipped executions when the computer is asleep during the time an interval should be triggered. This can result in skipped updates and therefore vulnerable devices.
Usage
output from
--help
:Error handling
Invalid character
Invalid value
Invalid pattern
If the pattern is not recognized (missing one hyphen, for example), it will show the output of
--help
followed by this line:Additional infos
Please refer to this comment for a more in depth explanation of the solved problem. You will also find a sample of how
StartInterval
is different fromStartCalendarInterval
regarding theplist
XML definition.The
interval
option is still supported and can be used like before.When the user does not specify a custom interval or custom schedule, it will fall back to
0-12---
: