sms-forward: wait to be fully connected

This commit is contained in:
Christian Hesse 2020-07-14 09:25:12 +02:00
parent 16685dd332
commit 639bfc367b

View file

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