aboutsummaryrefslogtreecommitdiffstats
path: root/sms-forward
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-05-17 22:34:17 +0200
committerGravatar Christian Hesse <mail@eworm.de>2020-05-17 22:34:17 +0200
commita806b37a47363b882d14cae0e940773949facaa3 (patch)
treeade8f141988b6aced9ef47b4d036e309f546490c /sms-forward
parent255b2a8244cce98a0d5253b0b11ba0860a009425 (diff)
sms-forward: warn and exit if receiving is not enabled
Diffstat (limited to 'sms-forward')
-rw-r--r--sms-forward4
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;