From dd22dfd26d01a39aab352d21db205c97a20dbcfa Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 29 Sep 2022 10:31:54 +0200 Subject: [PATCH] backup-email: check if dependency for sending e-mail is installed --- backup-email | 4 ++++ 1 file changed, 4 insertions(+) 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;