mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
global-functions: $ScriptInstallUpdate: handle migration before message
This commit is contained in:
@@ -710,14 +710,14 @@
|
||||
:set NotificationMessage ($NotificationMessage . "\n\nChanges:");
|
||||
[ :parse $ChangeLogCode ];
|
||||
:for I from=($GlobalConfigVersion + 1) to=$ExpectedConfigVersion do={
|
||||
:set NotificationMessage ($NotificationMessage . \
|
||||
"\n * " . $GlobalConfigChanges->[ :tostr $I ]);
|
||||
$LogPrintExit info ("Change: " . $GlobalConfigChanges->[ :tostr $I ]) false;
|
||||
:local Migration ($GlobalConfigMigration->[ :tostr $I ]);
|
||||
:if ([ :typeof $Migration ] = "str") do={
|
||||
$LogPrintExit info ("Applying migration: " . $Migration) false;
|
||||
[ :parse $Migration ];
|
||||
}
|
||||
:set NotificationMessage ($NotificationMessage . \
|
||||
"\n * " . $GlobalConfigChanges->[ :tostr $I ]);
|
||||
$LogPrintExit info ("Change: " . $GlobalConfigChanges->[ :tostr $I ]) false;
|
||||
}
|
||||
:set GlobalConfigChanges;
|
||||
:set GlobalConfigMigration;
|
||||
|
Reference in New Issue
Block a user