diff options
author | Christian Hesse <mail@eworm.de> | 2020-05-17 22:34:17 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2020-05-17 22:34:17 +0200 |
commit | a806b37a47363b882d14cae0e940773949facaa3 (patch) | |
tree | ade8f141988b6aced9ef47b4d036e309f546490c /sms-forward | |
parent | 255b2a8244cce98a0d5253b0b11ba0860a009425 (diff) |
sms-forward: warn and exit if receiving is not enabled
Diffstat (limited to 'sms-forward')
-rw-r--r-- | sms-forward | 4 |
1 files changed, 4 insertions, 0 deletions
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; |