mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-24 04:44:26 +02: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…
Add table
Add a link
Reference in a new issue