packages-update: be more verbose

This commit is contained in:
Christian Hesse 2020-10-08 00:02:02 +02:00
parent 3dc10ca2b8
commit ffad79b8fc

View file

@ -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;
}
}