OPNsense Forum

English Forums => General Discussion => Topic started by: jp0469 on March 31, 2021, 02:49:49 am

Title: Schedule update
Post by: jp0469 on March 31, 2021, 02:49:49 am
Would this work in order to schedule the firmware update? For example, tonight just before midnight:

Code: [Select]
# configctl firmware auto-update | at 2359 mar 30
Title: Re: Schedule update
Post by: franco on March 31, 2021, 09:01:28 am
Yes that would work. It's a pretty clever solution for this https://github.com/opnsense/core/issues/1798 -- offering a GUI would complicate this a lot more.


Cheers,
Franco
Title: Re: Schedule update
Post by: lfirewall1243 on March 31, 2021, 03:12:24 pm
Would this work in order to schedule the firmware update? For example, tonight just before midnight:

Code: [Select]
# configctl firmware auto-update | at 2359 mar 30
Or setup the Auto Upgrade cron
Title: Re: Schedule update
Post by: franco on March 31, 2021, 04:04:12 pm
Sure, although that is not a one-shot mode...


Cheers,
Franco
Title: Re: Schedule update
Post by: jp0469 on March 31, 2021, 04:09:43 pm
Would this work in order to schedule the firmware update? For example, tonight just before midnight:

Code: [Select]
# configctl firmware auto-update | at 2359 mar 30
Or setup the Auto Upgrade cron
I considered that but I did not want the job to automatically repeat. My use case is that I admin an OPNsense device for my friend's business and I prefer not to apply updates right away. Instead, I wait a few days to make sure that no major issues are being reported and then I apply the update during non-business hours.
Title: Re: Schedule update
Post by: lfirewall1243 on March 31, 2021, 06:54:44 pm
Would this work in order to schedule the firmware update? For example, tonight just before midnight:

Code: [Select]
# configctl firmware auto-update | at 2359 mar 30
Or setup the Auto Upgrade cron
I considered that but I did not want the job to automatically repeat. My use case is that I admin an OPNsense device for my friend's business and I prefer not to apply updates right away. Instead, I wait a few days to make sure that no major issues are being reported and then I apply the update during non-business hours.
Yeah
You should have to disable the Cron next morning
Or a week later. The normal release time is every 2 weeks
Title: Re: Schedule update
Post by: lfirewall1243 on March 31, 2021, 06:55:43 pm
@franco maybe another cron Job which disables itself after 1 run would be an idea
Title: Re: Schedule update
Post by: franco on March 31, 2021, 08:41:59 pm
It's a lot of work for a little comfort. I applaud using at utility... very nifty.


Cheers,
Franco