mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
check-routeros-update: send versions to safe-update-url
This commit is contained in:
parent
76dbc98013
commit
ddfa6d9053
1 changed files with 2 additions and 1 deletions
|
@ -28,7 +28,8 @@
|
|||
|
||||
:if ([ :len $"safe-update-url" ] > 0) do={
|
||||
:local result [ / tool fetch check-certificate=yes-without-crl \
|
||||
($"safe-update-url" . $channel) output=user as-value ];
|
||||
($"safe-update-url" . $channel . "?installed=" . $installedversion . \
|
||||
"&latest=" . $latestversion) output=user as-value ];
|
||||
:if ($result->"status" = "finished" && $result->"data" = $latestversion) do={
|
||||
:log info ("Version " . $latestversion . " is assumed safe, updating...");
|
||||
/ system package update install;
|
||||
|
|
Loading…
Reference in a new issue