Can't update firmware from a script

This issue has been around for a while but I am just now getting around to posting it.

I can’t createa scheduled script to update firmware. I used to be able to do this. It broke someplace along the line.

/system package update check-for-updates
/system package update install

YES, I understand the risks of doing automated updates.

Permissions on script and on scheduler are: read, write, reboot, test..

It seems to not run from scheduler.

Does it help if you add without-paging? Possibly this is a timing issue.

/system package update check-for-updates without-paging
/system package update install

Most likely you are missing a delay between both functions. See examples here:

https://wiki.mikrotik.com/wiki/Manual:Upgrading_RouterOS#RouterOS_auto-upgrade

Adding without-paging works reliable and without delay. :sunglasses: