Auto Update Scheduler

Hello,

Does anyone have a script that will add this to the scheduler to run nightly at 12AM?

/system package update
check-for-updates once
:delay 3s;
:if ( [get status] = "New version is available") do={ install }

I am wanting to check for updates every night at 12AM using this script. Thanks!

(No opinions needed on auto updating thanks)

https://youtu.be/KBIymt8y1-4

Watch, it explains all you need to know.

(No opinions needed on auto updating thanks)

Facts, not opinons:

I think among the dumbest things you can do in the world,
the dumbest of all is automatically updating a device to a newly released software version.

Another stupid thing is to update all at the exact same time.
For example, if a PoE device reboots and cuts off power to a device that was writing the update…
Or an upstream device reboots before a downstream one, causing the downstream device to think the update has been downloaded, tries to install it, but it is corrupted…

Or, if a PoE/USB power device is configured to reboot the upgrading device if it stops responding,
when the device applies the update it stops responding and then the PoE/USB power reboots it in the middle of the update…

Simply, once you have created the scheduled action, “export” the scheduler to the terminal and you will have the script to create the script inside the scheduler, it goes for anything…

And speaking of the script, if you really want to screw up, do it well:

/system package update ; check ; install

/system scheduler
add interval=1d name=russian-roulette on-event=“/system package update ; check ; install”
policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon
start-date=2024-10-01 start-time=00:00:00

name=russian-roulette

:laughing:

( Does it have the same meaning as Italian, in the way of speaking Russian? )

Yes, Русская рулетка

Everything is right. Russian roulette is when they turned the drum of a revolver loaded with one cartridge and shot themselves in the temple.
Comparable to the Router OS auto upgrade.