diff options
author | Christian Hesse <mail@eworm.de> | 2021-04-27 20:53:54 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2021-04-28 13:58:37 +0200 |
commit | d6edf6c2d38255b7618d15124e3da790a8f5f414 (patch) | |
tree | 64f430f4d07bf69f884e869cd897d97a74cfc00c /cloud-backup | |
parent | 19ca17190d6b8b9eaa979e5547e58ef661f7dbb9 (diff) |
cloud-backup: use $SendNotification2
Diffstat (limited to 'cloud-backup')
-rw-r--r-- | cloud-backup | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cloud-backup b/cloud-backup index aa29faa..23fa164 100644 --- a/cloud-backup +++ b/cloud-backup @@ -18,7 +18,7 @@ :global LogPrintExit2; :global RandomDelay; :global ScriptFromTerminal; -:global SendNotification; +:global SendNotification2; :global SymbolForNotification; :global WaitFullyConnected; @@ -41,14 +41,14 @@ $WaitFullyConnected; } :local Cloud [ / system backup cloud get ([ find ]->0) ]; - $SendNotification ([ $SymbolForNotification "floppy-disk" ] . "Cloud backup") \ - ("Uploaded backup for " . $Identity . " to cloud.\n\n" . \ + $SendNotification2 ({ 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") "" "true"; + "Download key: " . $Cloud->"secret-download-key"); silent=true }); } on-error={ - $SendNotification ([ $SymbolForNotification "warning-sign" ] . "Cloud backup failed") \ - ("Failed uploading backup for " . $Identity . " to cloud!\n\n" . [ $DeviceInfo ]); + $SendNotification2 ({ 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; } |