mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-06-24 18:48:37 +02:00
upload-backup: use $SendNotification2
This commit is contained in:
parent
123fe01115
commit
66a92c3da9
1 changed files with 5 additions and 5 deletions
|
@ -26,7 +26,7 @@
|
|||
:global LogPrintExit2;
|
||||
:global RandomDelay;
|
||||
:global ScriptFromTerminal;
|
||||
:global SendNotification;
|
||||
:global SendNotification2;
|
||||
:global SymbolForNotification;
|
||||
:global WaitForFile;
|
||||
:global WaitFullyConnected;
|
||||
|
@ -80,13 +80,13 @@ $WaitFullyConnected;
|
|||
}
|
||||
}
|
||||
|
||||
$SendNotification [ $IfThenElse ($Failed > 0) \
|
||||
$SendNotification2 ({ subject=[ $IfThenElse ($Failed > 0) \
|
||||
([ $SymbolForNotification "warning-sign" ] . "Backup & Config upload with failure") \
|
||||
([ $SymbolForNotification "floppy-disk" ] . "Backup & Config upload") ] \
|
||||
("Backup and config export upload for " . $Identity . ".\n\n" . \
|
||||
([ $SymbolForNotification "floppy-disk" ] . "Backup & Config upload") ]; \
|
||||
message=("Backup and config export upload for " . $Identity . ".\n\n" . \
|
||||
[ $DeviceInfo ] . "\n\n" . \
|
||||
"Backup file: " . $BackupFile . "\n" . \
|
||||
"Config file: " . $ConfigFile) "" "true";
|
||||
"Config file: " . $ConfigFile); silent=true });
|
||||
|
||||
:if ($Failed = 1) do={
|
||||
:error "An error occured!";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue