aboutsummaryrefslogtreecommitdiffstats
path: root/backup-cloud.rsc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-03-08 12:45:37 +0100
committerGravatar Christian Hesse <mail@eworm.de>2024-03-12 20:37:57 +0100
commitac3b755fdc630d4daa40a9ba5254d92f8a91b03f (patch)
treef398104a3c6378894c83d62a31d81bc663de8ae1 /backup-cloud.rsc
parent1feeed145d6b63ef60fc3c0abbe0703b7bd73837 (diff)
backup-cloud: switch to $LogPrint
Diffstat (limited to 'backup-cloud.rsc')
-rw-r--r--backup-cloud.rsc7
1 files changed, 4 insertions, 3 deletions
diff --git a/backup-cloud.rsc b/backup-cloud.rsc
index 14af776..cccb41b 100644
--- a/backup-cloud.rsc
+++ b/backup-cloud.rsc
@@ -22,7 +22,7 @@
:global DeviceInfo;
:global FormatLine;
:global HumanReadableNum;
- :global LogPrintExit2;
+ :global LogPrint;
:global MkDir;
:global RandomDelay;
:global ScriptFromTerminal;
@@ -43,7 +43,8 @@
}
:if ([ $MkDir ("tmpfs/backup-cloud") ] = false) do={
- $LogPrintExit2 error $ScriptName ("Failed creating directory!") true;
+ $LogPrint error $ScriptName ("Failed creating directory!");
+ :error false;
}
:execute {
@@ -76,7 +77,7 @@
$SendNotification2 ({ origin=$ScriptName; \
subject=([ $SymbolForNotification "floppy-disk,warning-sign" ] . "Cloud backup failed"); \
message=("Failed uploading backup for " . $Identity . " to cloud!\n\n" . [ $DeviceInfo ]) });
- $LogPrintExit2 error $ScriptName ("Failed uploading backup for " . $Identity . " to cloud!") false;
+ $LogPrint error $ScriptName ("Failed uploading backup for " . $Identity . " to cloud!");
:set PackagesUpdateBackupFailure true;
:error false;
}