diff options
-rw-r--r-- | upload-backup | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/upload-backup b/upload-backup index 15adc1f..eb9e2e0 100644 --- a/upload-backup +++ b/upload-backup @@ -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!"; |