OPNsense Forum

Archive => 24.1, 24.4 Legacy Series => Topic started by: xxavvv123 on April 15, 2024, 10:33:39 PM

Title: Automatic Update Via Cron
Post by: xxavvv123 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
Title: Re: Automatic Update Via Cron
Post by: Patrick M. Hausen 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