Bugfix channel ROS update

Hello, we have working script to automatic ROS upgrade.
The script works well, but it upgrades to latest current version, that is not always stable enough.
There is new feature from v. 6.31, that enabled to choose channel of required upgrade type - Bugfix, Latest, Developer.
It can be done easily from WinBox, but it is not documented well yet.

So can you recommend us how to use upgrade channel in script?

Thank you very much
Miroslav

+1

I need this aswell

here you go:
http://wiki.mikrotik.com/wiki/Manual:Upgrading_RouterOS#RouterOS_auto-upgrade

Hello,
thanks for answer.
But we are asking for possibilities to choose between “current” and “bugfix” update by script.
Thanks again
Mirek

Choose it once by hand, and the script will always remain in the same channel

It is good to know the setting is remaining.
Is it any chance to set the type of update by script. You know that edit hundreds of klient devices by hand is not very comfortable.
That is the reason we use scripting.
Thanks
Miroslav

This line in the console should be enough:

/system package update set channel=bugfix

This is exactly I need to know!
Excelent
Thank you very much
Miroslav

For me its working with this:

:local sendto email@domain.com
/system package update
set channel=bugfix 
check-for-updates once
:delay 10s;
:global scriptgetnewversion [get latest-version];
:global scriptactualversion [/system resource get version];
:if ( [get status] = "New version is available" ) do={ 
/tool e-mail send to=$sendto subject="[UPDATE] $[/system identity get name]" body="Old Version $scriptactualversion --- Going to $scriptgetnewversion ";
/system package update check-for-updates do={ install };
:log warning "[UPDATING NOW] - Old verison was $scriptactualversion -- Going to $scriptgetnewversion "
};