Hi!
Found a thread (from 2021, here: https://forum.opnsense.org/index.php?topic=22379.msg106361#msg106361) that was using at command to execute an update later. This method can be a convenient way to postpone an update to nighttime.
It was using:
configctl firmware auto-update | at HHMM mmm DD
But I got an error running "configctl firmware auto-update".
This still a supported method?
Poked around a little bit and found alternatives.
# /usr/local/opnsense/scripts/firmware/update.sh
# opnsense-update
The only doc I found on opnsense-update was the man help.
Which method is the correct one?
Tried 25.1.2 to 25.1.3 with this and it worked. Set the at command just a couple of minutes into the future.
/usr/local/opnsense/scripts/firmware/update.sh | 2003
OPNsense rebooted directly after the update and came back up again with 25.1.3.
And... just to check. I tried this again:
configctl firmware auto-update
again and now it worked without error. Strange.
But question remain, which method is the "the one"? 😉
Brgs!
Option 12 in the OPNsense shell OR through Web GUI
Thank you! That's the interactive way of doing an update.
This is about postponing an upgrade to later and I want to do it from shell.
Btw, also found this through the preset cron jobs. Maybe it's the correct one?
/usr/local/etc/rc.firmware