mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
packages-update: be more verbose
This commit is contained in:
parent
3dc10ca2b8
commit
ffad79b8fc
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue