aboutsummaryrefslogtreecommitdiffstats
path: root/check-routeros-update
diff options
context:
space:
mode:
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;