aboutsummaryrefslogtreecommitdiffstats
path: root/check-routeros-update
diff options
context:
space:
mode:
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 ff5bc38..d622ba3 100644
--- a/check-routeros-update
+++ b/check-routeros-update
@@ -11,7 +11,7 @@
:global DeviceInfo;
:global ScriptFromTerminal;
:global SendNotification;
-:global LogAndError;
+:global LogPrintExit;
:local DoUpdate do={
:if ([ / system script print count-only where name="packages-update" ] > 0) do={
@@ -25,7 +25,7 @@
:if ([ / system package print count-only where name="wireless" disabled=no ] > 0) do={
:if ([ / interface wireless cap get enabled ] = true && \
[ / caps-man manager get enabled ] = false) do={
- $LogAndError error "System is managed by CAPsMAN, not checking.";
+ $LogPrintExit error "System is managed by CAPsMAN, not checking." true;
}
}
@@ -37,7 +37,7 @@
:local Update [ / system package update get ];
:if ([ :len ($Update->"latest-version") ] = 0) do={
- $LogAndError warning "An empty string is not a valid version.";
+ $LogPrintExit warning "An empty string is not a valid version." true;
}
:if ($Update->"installed-version" != $Update->"latest-version") do={