aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--check-routeros-update3
1 files changed, 3 insertions, 0 deletions
diff --git a/check-routeros-update b/check-routeros-update
index fe81489..0c39daa 100644
--- a/check-routeros-update
+++ b/check-routeros-update
@@ -34,6 +34,9 @@
"&latest=" . $latestversion) output=user as-value ];
:if ($result->"status" = "finished" && $result->"data" = $latestversion) do={
:log info ("Version " . $latestversion . " is assumed safe, updating...");
+ $SendNotification ("[" . $identity . "] RouterOS update notification") \
+ ("Version " . $latestversion . " is assumed safe for " . $channel . \
+ ", updating on " . $identity . "...");
/ system package update install;
:error "Waiting for system to reboot.";
}