upload-backup: use $SendNotification2

This commit is contained in:
Christian Hesse 2021-04-27 20:44:34 +02:00
parent 123fe01115
commit 66a92c3da9

View file

@ -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!";