mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
backup-email: check if dependency for sending e-mail is installed
This commit is contained in:
parent
10182949ea
commit
dd22dfd26d
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue