aboutsummaryrefslogtreecommitdiffstats
path: root/backup-email.rsc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-03-08 09:26:24 +0100
committerGravatar Christian Hesse <mail@eworm.de>2024-03-12 15:27:15 +0100
commit5f41bd1c1ec98bea8d7cc1760ff740ded20aa4d1 (patch)
treeafefd1a33f8b852643b6be8ae429c8afa01e6da9 /backup-email.rsc
parentc82f7766326f5e24ea81c2fe4a2a745075c86984 (diff)
backup-email: pass failure to packages-update
Diffstat (limited to 'backup-email.rsc')
-rw-r--r--backup-email.rsc6
1 files changed, 5 insertions, 1 deletions
diff --git a/backup-email.rsc b/backup-email.rsc
index 9f6e31a..e4dec3b 100644
--- a/backup-email.rsc
+++ b/backup-email.rsc
@@ -22,6 +22,7 @@
:global BackupSendGlobalConfig;
:global Domain;
:global Identity;
+ :global PackagesUpdateBackupFailure;
:global CleanName;
:global DeviceInfo;
@@ -46,6 +47,7 @@
}
:if ([ $ScriptLock $ScriptName ] = false) do={
+ :set PackagesUpdateBackupFailure true;
:error false;
}
$WaitFullyConnected;
@@ -109,7 +111,9 @@
:local I 0;
:while ([ :len [ /file/find where name ~ ($FilePath . "\\.(backup|rsc)\$") ] ] > 0) do={
:if ($I >= 120) do={
- $LogPrintExit2 warning $ScriptName ("Files are still available, sending e-mail failed.") true;
+ $LogPrintExit2 warning $ScriptName ("Files are still available, sending e-mail failed.") false;
+ :set PackagesUpdateBackupFailure true;
+ :error false;
}
:delay 1s;
:set I ($I + 1);