aboutsummaryrefslogtreecommitdiffstats
path: root/check-routeros-update
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2018-09-19 22:18:42 +0200
committerGravatar Christian Hesse <mail@eworm.de>2018-09-19 22:18:42 +0200
commitddfa6d9053f36a3a83071e636ab3ef145a6d9ea2 (patch)
tree5c94a517888b51ce27d26dffb9ce84e115587cb8 /check-routeros-update
parent76dbc98013c494e90b91479ab5c1210213ca9e57 (diff)
check-routeros-update: send versions to safe-update-url
Diffstat (limited to 'check-routeros-update')
-rw-r--r--check-routeros-update3
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;