mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-07-14 12:54:24 +02:00
packages-update: use 'provides' to find backup scripts
This commit is contained in:
parent
06a0f42039
commit
420986fdfc
4 changed files with 7 additions and 1 deletions
|
@ -52,7 +52,7 @@ $ScriptLock $0;
|
|||
}
|
||||
}
|
||||
|
||||
:foreach Script in=[ / system script find where name~"^(cloud|email|upload)-backup\$" ] do={
|
||||
:foreach Script in=[ / system script find where source~"\n# provides: backup-script\n" ] do={
|
||||
:local ScriptName [ / system script get $Script name ];
|
||||
:do {
|
||||
$LogPrintExit2 info $0 ("Running backup script " . $ScriptName . " before update.") false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue