sms-forward: use $MailServerIsUp

This commit is contained in:
Christian Hesse 2020-02-24 10:48:24 +01:00
parent 7d2239f24e
commit e11ddeaf8c

View file

@ -7,9 +7,10 @@
:global Identity; :global Identity;
:global SendNotification; :global SendNotification;
:global MailServerIsUp;
# check mail server # check mail server
:if ([ / tool netwatch get [ find where comment=[ / tool e-mail get address ] ] status ] != "up") do={ :if ($MailServerIsUp = false) do={
:log warning "Mail server is not up."; :log warning "Mail server is not up.";
:error "Warning: See log for details."; :error "Warning: See log for details.";
} }