sms-forward: warn and exit if receiving is not enabled

This commit is contained in:
Christian Hesse 2020-05-17 22:34:17 +02:00
parent 255b2a8244
commit a806b37a47

View file

@ -11,6 +11,10 @@
:global MailServerIsUp; :global MailServerIsUp;
:global SendNotification; :global SendNotification;
:if ([ / tool sms get receive-enabled ] = false) do={
$LogPrintExit warning "Receiving of SMS is not enabled." true;
}
# check mail server # check mail server
:if ($MailServerIsUp = false) do={ :if ($MailServerIsUp = false) do={
$LogPrintExit warning "Mail server is not up." true; $LogPrintExit warning "Mail server is not up." true;