diff options
author | Christian Hesse <mail@eworm.de> | 2020-10-08 00:02:02 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2020-10-08 00:04:29 +0200 |
commit | ffad79b8fc25b8d486a68991d8b619cf01733908 (patch) | |
tree | c7c659d08282ab39c758049616fc2999e15d5bc3 | |
parent | 3dc10ca2b86f929799048ceb68af30c19f39702d (diff) |
packages-update: be more verbose
-rw-r--r-- | packages-update | 5 |
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; } } |