mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
backup-email: check if dependency for sending e-mail is installed
This commit is contained in:
@ -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;
|
||||||
|
Reference in New Issue
Block a user