mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
global-functions: $MailServerIsUp: decrease log severity to info
This commit is contained in:
@@ -436,13 +436,13 @@
|
|||||||
:return true;
|
:return true;
|
||||||
} else={
|
} else={
|
||||||
:if ($MailServer = "0.0.0.0") do={
|
:if ($MailServer = "0.0.0.0") do={
|
||||||
$LogPrintExit warning ("No mail server is configured! Returning gracefully...") false;
|
$LogPrintExit info ("No mail server is configured! Returning gracefully...") false;
|
||||||
:return true;
|
:return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
:if ([ :len [ / tool netwatch find where comment=$MailServer ] ] = 0) do={
|
:if ([ :len [ / tool netwatch find where comment=$MailServer ] ] = 0) do={
|
||||||
$LogPrintExit warning ("Adding netwatch entry for mail server.") false;
|
$LogPrintExit info ("Adding netwatch entry for mail server.") false;
|
||||||
:local MailHost $MailServer;
|
:local MailHost $MailServer;
|
||||||
:if ([ :typeof [ :toip $MailHost ] ] != "ip" ) do={
|
:if ([ :typeof [ :toip $MailHost ] ] != "ip" ) do={
|
||||||
:do {
|
:do {
|
||||||
|
Reference in New Issue
Block a user