backup-email: check if dependency for sending e-mail is installed

This commit is contained in:
Christian Hesse 2022-09-29 10:31:54 +02:00
parent 10182949ea
commit dd22dfd26d

View file

@ -30,6 +30,10 @@
:global WaitForFile; :global WaitForFile;
:global WaitFullyConnected; :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 && \ :if ($BackupSendBinary != true && \
$BackupSendExport != true) do={ $BackupSendExport != true) do={
$LogPrintExit2 error $0 ("Configured to send neither backup nor config export.") true; $LogPrintExit2 error $0 ("Configured to send neither backup nor config export.") true;