diff options
author | Christian Hesse <mail@eworm.de> | 2020-07-07 12:18:37 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2020-07-07 12:18:37 +0200 |
commit | d75ef3bd69ab0995680b6cddaf134a65cc1a2a18 (patch) | |
tree | dc3a8046408e85579b66dcdc7900bcd85132934e | |
parent | b31d1a0f0140a36c0b92b9fd6173db8fa978ef1f (diff) |
packages-update: add error handling, also run cloud-backup
-rw-r--r-- | packages-update | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/packages-update b/packages-update index c0a3c84..097b8d4 100644 --- a/packages-update +++ b/packages-update @@ -48,8 +48,12 @@ $ScriptLock "packages-update"; } } -:foreach Script in=[ / system script find where name~"^(email|upload)-backup\$" ] do={ - / system script run $Script; +:foreach Script in=[ / system script find where name~"^(cloud|email|upload)-backup\$" ] do={ + :do { + / system script run $Script; + } on-error={ + $LogPrintExit warning ("Running backup script " . $Script . " failed.") false; + } } :if ($DoDowngrade = true) do={ |