Schedule update

Started by jp0469, March 31, 2021, 02:49:49 AM

Previous topic - Next topic
Would this work in order to schedule the firmware update? For example, tonight just before midnight:

# configctl firmware auto-update | at 2359 mar 30

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

Quote from: 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:

# configctl firmware auto-update | at 2359 mar 30
Or setup the Auto Upgrade cron
(Unoffial Community) OPNsense Telegram Group: https://t.me/joinchat/0o9JuLUXRFpiNmJk

PM for paid support

Sure, although that is not a one-shot mode...


Cheers,
Franco

Quote from: lfirewall1243 on March 31, 2021, 03:12:24 PM
Quote from: 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:

# 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.

Quote from: jp0469 on March 31, 2021, 04:09:43 PM
Quote from: lfirewall1243 on March 31, 2021, 03:12:24 PM
Quote from: 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:

# 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
(Unoffial Community) OPNsense Telegram Group: https://t.me/joinchat/0o9JuLUXRFpiNmJk

PM for paid support

@franco maybe another cron Job which disables itself after 1 run would be an idea
(Unoffial Community) OPNsense Telegram Group: https://t.me/joinchat/0o9JuLUXRFpiNmJk

PM for paid support

It's a lot of work for a little comfort. I applaud using at utility... very nifty.


Cheers,
Franco