aboutsummaryrefslogtreecommitdiffstats
path: root/upload-backup
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2021-04-27 20:44:34 +0200
committerGravatar Christian Hesse <mail@eworm.de>2021-04-28 13:58:37 +0200
commit66a92c3da9a43cf4b2df33d652053f72b70898a1 (patch)
treee1e2f9e800cef0a6f045fe5c4d5f308033751309 /upload-backup
parent123fe011151f66f0d6c9a27875d5139a9129ac10 (diff)
upload-backup: use $SendNotification2
Diffstat (limited to 'upload-backup')
-rw-r--r--upload-backup10
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!";