mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-13 22:48:42 +02:00
packages-update: add error handling, also run cloud-backup
This commit is contained in:
parent
b31d1a0f01
commit
d75ef3bd69
1 changed files with 6 additions and 2 deletions
|
@ -48,8 +48,12 @@ $ScriptLock "packages-update";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
:foreach Script in=[ / system script find where name~"^(email|upload)-backup\$" ] do={
|
:foreach Script in=[ / system script find where name~"^(cloud|email|upload)-backup\$" ] do={
|
||||||
/ system script run $Script;
|
:do {
|
||||||
|
/ system script run $Script;
|
||||||
|
} on-error={
|
||||||
|
$LogPrintExit warning ("Running backup script " . $Script . " failed.") false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
:if ($DoDowngrade = true) do={
|
:if ($DoDowngrade = true) do={
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue