OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • Schedule update
« previous next »
  • Print
Pages: [1]

Author Topic: Schedule update  (Read 3610 times)

jp0469

  • Jr. Member
  • **
  • Posts: 60
  • Karma: 8
    • View Profile
Schedule update
« 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
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17705
  • Karma: 1618
    • View Profile
Re: Schedule update
« Reply #1 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
Logged

lfirewall1243

  • Hero Member
  • *****
  • Posts: 1386
  • Karma: 45
    • View Profile
Re: Schedule update
« Reply #2 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:

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

PM for paid support

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17705
  • Karma: 1618
    • View Profile
Re: Schedule update
« Reply #3 on: March 31, 2021, 04:04:12 pm »
Sure, although that is not a one-shot mode...


Cheers,
Franco
Logged

jp0469

  • Jr. Member
  • **
  • Posts: 60
  • Karma: 8
    • View Profile
Re: Schedule update
« Reply #4 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:

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

lfirewall1243

  • Hero Member
  • *****
  • Posts: 1386
  • Karma: 45
    • View Profile
Re: Schedule update
« Reply #5 on: March 31, 2021, 06:54:44 pm »
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:

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

PM for paid support

lfirewall1243

  • Hero Member
  • *****
  • Posts: 1386
  • Karma: 45
    • View Profile
Re: Schedule update
« Reply #6 on: March 31, 2021, 06:55:43 pm »
@franco maybe another cron Job which disables itself after 1 run would be an idea
Logged
(Unoffial Community) OPNsense Telegram Group: https://t.me/joinchat/0o9JuLUXRFpiNmJk

PM for paid support

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17705
  • Karma: 1618
    • View Profile
Re: Schedule update
« Reply #7 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
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • Schedule update
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2