From a806b37a47363b882d14cae0e940773949facaa3 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Sun, 17 May 2020 22:34:17 +0200 Subject: sms-forward: warn and exit if receiving is not enabled --- sms-forward | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sms-forward') diff --git a/sms-forward b/sms-forward index 7f79aaa..2c6082c 100644 --- a/sms-forward +++ b/sms-forward @@ -11,6 +11,10 @@ :global MailServerIsUp; :global SendNotification; +:if ([ / tool sms get receive-enabled ] = false) do={ + $LogPrintExit warning "Receiving of SMS is not enabled." true; +} + # check mail server :if ($MailServerIsUp = false) do={ $LogPrintExit warning "Mail server is not up." true; -- cgit v1.2.3-70-g09d2