/system package update
check-for-updates once
:if ( [get status] = "New version is available") do={
install
etc etc
How can I delay the update after i.e. two days the new version has been detected ?
I.e. making the script to collect current date and create a schedule to run update to next two days…
Very poor knowledge in scripting…
Any suggestion really appreciated
…I could set a daily “schedule1” to check if new version is availale, if yes, enable “schedule2” with interval 2days ,who launches update script.
This script also disables “schedule2” itself, stopping updates unless “schedule1” finds a new version available.
Surely there would a better and elegant way, but no skill here…
Make sure schedule1 disables itself when scheduling schedule2, or else schedule2 will just get kicked two days down the road every day. Schedule2 also has to re-enable schedule1 when it runs.
Global variables work OK as long as you don’t perform reboots (or have them performed to you).