aboutsummaryrefslogtreecommitdiffstats
path: root/cloud-backup
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2021-04-27 21:55:31 +0200
committerGravatar Christian Hesse <mail@eworm.de>2021-04-28 13:58:37 +0200
commita9b932d67e294db78555a1473b53e2a23e5632ca (patch)
tree140720c9e523bfaba18b073ba86d86c0a0a53d84 /cloud-backup
parent8e1c524b8583aa476af232d2e2e2a19f5f34540c (diff)
cloud-backup: pass origin to $SendNotification2
Diffstat (limited to 'cloud-backup')
-rw-r--r--cloud-backup6
1 files changed, 4 insertions, 2 deletions
diff --git a/cloud-backup b/cloud-backup
index 23fa164..546f614 100644
--- a/cloud-backup
+++ b/cloud-backup
@@ -41,14 +41,16 @@ $WaitFullyConnected;
}
:local Cloud [ / system backup cloud get ([ find ]->0) ];
- $SendNotification2 ({ subject=([ $SymbolForNotification "floppy-disk" ] . "Cloud backup"); \
+ $SendNotification2 ({ origin=$0; \
+ subject=([ $SymbolForNotification "floppy-disk" ] . "Cloud backup"); \
message=("Uploaded backup for " . $Identity . " to cloud.\n\n" . \
[ $DeviceInfo ] . "\n\n" . \
"Name: " . $Cloud->"name" . "\n" . \
"Size: " . $Cloud->"size" . " B (" . ($Cloud->"size" / 1024) . " KiB)\n" . \
"Download key: " . $Cloud->"secret-download-key"); silent=true });
} on-error={
- $SendNotification2 ({ subject=([ $SymbolForNotification "warning-sign" ] . "Cloud backup failed"); \
+ $SendNotification2 ({ origin=$0; \
+ subject=([ $SymbolForNotification "warning-sign" ] . "Cloud backup failed"); \
message=("Failed uploading backup for " . $Identity . " to cloud!\n\n" . [ $DeviceInfo ]) });
$LogPrintExit2 error $0 ("Failed uploading backup for " . $Identity . " to cloud!") true;
}