From ddfa6d9053f36a3a83071e636ab3ef145a6d9ea2 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 19 Sep 2018 22:18:42 +0200 Subject: check-routeros-update: send versions to safe-update-url --- check-routeros-update | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'check-routeros-update') 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; -- cgit v1.2.3-70-g09d2