mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-09 17:44:29 +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