mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-06-29 20:54:28 +02:00
check-routeros-update: add symbol in all notifications
This commit is contained in:
parent
8eaf24e274
commit
35c28df68d
1 changed files with 3 additions and 3 deletions
|
@ -51,7 +51,7 @@
|
|||
:if ($NumInstalled < $NumLatest) do={
|
||||
:if ($SafeUpdatePatch = true && ($NumInstalled & 0xffff0000) = ($NumLatest & 0xffff0000)) do={
|
||||
$LogPrintExit info ("Version " . $Update->"latest-version" . " is a patch release, updating...") false;
|
||||
$SendNotification ("RouterOS update") \
|
||||
$SendNotification ([ $SymbolForNotification "sparkles" ] . "RouterOS update") \
|
||||
("Version " . $Update->"latest-version" . " is a patch update for " . $Update->"channel" . \
|
||||
", updating on " . $Identity . "...") "" "true";
|
||||
$DoUpdate;
|
||||
|
@ -68,7 +68,7 @@
|
|||
}
|
||||
:if ($Result->"status" = "finished" && $Result->"data" = $Update->"latest-version") do={
|
||||
$LogPrintExit info ("Version " . $Update->"latest-version" . " is considered safe, updating...") false;
|
||||
$SendNotification ("RouterOS update") \
|
||||
$SendNotification ([ $SymbolForNotification "sparkles" ] . "RouterOS update") \
|
||||
("Version " . $Update->"latest-version" . " is considered safe for " . $Update->"channel" . \
|
||||
", updating on " . $Identity . "...") "" "true";
|
||||
$DoUpdate;
|
||||
|
@ -104,7 +104,7 @@
|
|||
$Update->"latest-version" . ".") true;
|
||||
}
|
||||
|
||||
$SendNotification ("RouterOS version") \
|
||||
$SendNotification ([ $SymbolForNotification "warning-sign" ] . "RouterOS version") \
|
||||
("A different RouterOS version " . ($Update->"latest-version") . \
|
||||
" is available for " . $Identity . ", but it is a downgrade.\n\n" . \
|
||||
[ $DeviceInfo ] . "\n\n" . \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue