Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
24.1 Legacy Series
»
Automatic Update Via Cron
« previous
next »
Print
Pages: [
1
]
Author
Topic: Automatic Update Via Cron (Read 610 times)
xxavvv123
Newbie
Posts: 2
Karma: 0
Automatic Update Via Cron
«
on:
April 15, 2024, 10:33:39 pm »
Hello!
I have a cron set to do the following: Upgrade the firmware on midnight on Friday OR Saturday within the date range of 21-28 of every month. I had my cron set to 0 0 21-28 * 5,6. Looks like it's updating every Friday regardless of it's within the 21st to 28th. Looks like the cron logic does not pick that up.
Is there any remedy to this - would a cron via CLI need to be made that uses the upgrade.sh script?
Thanks
Logged
Patrick M. Hausen
Hero Member
Posts: 6799
Karma: 571
Re: Automatic Update Via Cron
«
Reply #1 on:
April 15, 2024, 11:12:19 pm »
Cron does not necessarily combine the individual fields with an AND operator. Use this site to check the real effect of your cron tab entries:
https://crontab.guru
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
24.1 Legacy Series
»
Automatic Update Via Cron