aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2022-09-29 10:31:54 +0200
committerGravatar Christian Hesse <mail@eworm.de>2022-09-29 10:31:54 +0200
commitdd22dfd26d01a39aab352d21db205c97a20dbcfa (patch)
tree3def102b3b315cf7091bd87893c1738e32e676a3
parent10182949eab4c990ae8f6402ca030d19ea2b3cb0 (diff)
backup-email: check if dependency for sending e-mail is installed
-rw-r--r--backup-email4
1 files changed, 4 insertions, 0 deletions
diff --git a/backup-email b/backup-email
index 7cdf55e..34e15e1 100644
--- a/backup-email
+++ b/backup-email
@@ -30,6 +30,10 @@
:global WaitForFile;
:global WaitFullyConnected;
+:if ([ :typeof $SendEMail2 ] = "nothing") do={
+ $LogPrintExit2 error $0 ("The module for sending notifications via e-mail is not installed.") true;
+}
+
:if ($BackupSendBinary != true && \
$BackupSendExport != true) do={
$LogPrintExit2 error $0 ("Configured to send neither backup nor config export.") true;