aboutsummaryrefslogtreecommitdiffstats
path: root/upload-backup
diff options
context:
space:
mode:
Diffstat (limited to 'upload-backup')
-rw-r--r--upload-backup11
1 files changed, 6 insertions, 5 deletions
diff --git a/upload-backup b/upload-backup
index 15adc1f..921b196 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,14 @@ $WaitFullyConnected;
}
}
-$SendNotification [ $IfThenElse ($Failed > 0) \
+$SendNotification2 ({ origin=$0; \
+ 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!";