aboutsummaryrefslogtreecommitdiffstats
path: root/check-routeros-update
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-07-17 12:25:44 +0200
committerGravatar Christian Hesse <mail@eworm.de>2020-07-17 12:25:44 +0200
commit35c28df68dc8e04338d52fc966c97347cc612f0d (patch)
treef55021e575a8c9333762260556aa1baaf2cd169c /check-routeros-update
parent8eaf24e27415ad56138cf2ec93eb850509e42b0c (diff)
check-routeros-update: add symbol in all notifications
Diffstat (limited to 'check-routeros-update')
-rw-r--r--check-routeros-update6
1 files changed, 3 insertions, 3 deletions
diff --git a/check-routeros-update b/check-routeros-update
index ee018c0..b1e40e4 100644
--- a/check-routeros-update
+++ b/check-routeros-update
@@ -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" . \