mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
check-routeros-update: send notification on auto-update
This commit is contained in:
parent
7aae1bf9dd
commit
ba076db93e
1 changed files with 3 additions and 0 deletions
|
@ -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.";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue