aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-03-08 09:26:53 +0100
committerGravatar Christian Hesse <mail@eworm.de>2024-03-12 15:27:15 +0100
commite39e8a00834192211999b89f5f163a35c2214707 (patch)
treeb60c6b61aa2a4c5c7aa14cce575a5a17200af5d7
parent51b00181cf6524f173f0464a237bdb63c3f0734a (diff)
backup-upload: pass failure to packages-update
-rw-r--r--backup-upload.rsc5
1 files changed, 4 insertions, 1 deletions
diff --git a/backup-upload.rsc b/backup-upload.rsc
index 2b42730..769972b 100644
--- a/backup-upload.rsc
+++ b/backup-upload.rsc
@@ -25,6 +25,7 @@
:global BackupUploadUser;
:global Domain;
:global Identity;
+ :global PackagesUpdateBackupFailure;
:global CleanName;
:global DeviceInfo;
@@ -45,6 +46,7 @@
}
:if ([ $ScriptLock $ScriptName ] = false) do={
+ :set PackagesUpdateBackupFailure true;
:error false;
}
$WaitFullyConnected;
@@ -151,6 +153,7 @@
[ $FileInfo "Config file" $ConfigFile ]); silent=true });
:if ($Failed = 1) do={
- :error "An error occured!";
+ :set PackagesUpdateBackupFailure true;
+ :error false;
}
} on-error={ }