mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
check-routeros-update: make notifications silent
This commit is contained in:
@@ -52,7 +52,7 @@
|
||||
:log info ("Version " . $Update->"latest-version" . " is considered safe, updating...");
|
||||
$SendNotification ("RouterOS update") \
|
||||
("Version " . $Update->"latest-version" . " is considered safe for " . $Update->"channel" . \
|
||||
", updating on " . $Identity . "...");
|
||||
", updating on " . $Identity . "...") "" "true";
|
||||
$DoUpdate;
|
||||
}
|
||||
}
|
||||
@@ -81,6 +81,7 @@
|
||||
"Channel: " . $Update->"channel" . "\n" . \
|
||||
"Installed: " . $Update->"installed-version" . "\n" . \
|
||||
"Available: " . $Update->"latest-version" . "\n\n" .\
|
||||
"https://mikrotik.com/download/changelogs/" . $Update->"channel" . "-release-tree");
|
||||
"https://mikrotik.com/download/changelogs/" . $Update->"channel" . "-release-tree") \
|
||||
"" "true";
|
||||
:set SentRouterosUpdateNotification ($Update->"latest-version");
|
||||
}
|
||||
|
Reference in New Issue
Block a user