aboutsummaryrefslogtreecommitdiffstats
path: root/packages-update
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-10-08 00:02:02 +0200
committerGravatar Christian Hesse <mail@eworm.de>2020-10-08 00:04:29 +0200
commitffad79b8fc25b8d486a68991d8b619cf01733908 (patch)
treec7c659d08282ab39c758049616fc2999e15d5bc3 /packages-update
parent3dc10ca2b86f929799048ceb68af30c19f39702d (diff)
packages-update: be more verbose
Diffstat (limited to 'packages-update')
-rw-r--r--packages-update5
1 files changed, 3 insertions, 2 deletions
diff --git a/packages-update b/packages-update
index 38636c5..8e18e77 100644
--- a/packages-update
+++ b/packages-update
@@ -49,11 +49,12 @@ $ScriptLock "packages-update";
}
:foreach Script in=[ / system script find where name~"^(cloud|email|upload)-backup\$" ] do={
+ :local ScriptName [ / system script get $Script name ];
:do {
+ $LogPrintExit info ("Running backup script " . $ScriptName . " before update.") false;
/ system script run $Script;
} on-error={
- :local ScriptName [ / system script get $Script name ];
- $LogPrintExit warning ("Running backup script " . $ScriptName . " failed.") false;
+ $LogPrintExit warning ("Running backup script " . $ScriptName . " before update failed!") false;
}
}