diff options
author | Christian Hesse <mail@eworm.de> | 2018-09-19 22:18:42 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2018-09-19 22:18:42 +0200 |
commit | ddfa6d9053f36a3a83071e636ab3ef145a6d9ea2 (patch) | |
tree | 5c94a517888b51ce27d26dffb9ce84e115587cb8 | |
parent | 76dbc98013c494e90b91479ab5c1210213ca9e57 (diff) |
check-routeros-update: send versions to safe-update-url
-rw-r--r-- | check-routeros-update | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/check-routeros-update b/check-routeros-update index 4810368..aebe139 100644 --- a/check-routeros-update +++ b/check-routeros-update @@ -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; |