mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-07-17 17:42:17 +02:00
global-functions: $ScriptInstallUpdate: handle migration before message
This commit is contained in:
parent
e99821c39a
commit
0d91445cca
1 changed files with 3 additions and 3 deletions
|
@ -710,14 +710,14 @@
|
||||||
:set NotificationMessage ($NotificationMessage . "\n\nChanges:");
|
:set NotificationMessage ($NotificationMessage . "\n\nChanges:");
|
||||||
[ :parse $ChangeLogCode ];
|
[ :parse $ChangeLogCode ];
|
||||||
:for I from=($GlobalConfigVersion + 1) to=$ExpectedConfigVersion do={
|
: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 ]);
|
:local Migration ($GlobalConfigMigration->[ :tostr $I ]);
|
||||||
:if ([ :typeof $Migration ] = "str") do={
|
:if ([ :typeof $Migration ] = "str") do={
|
||||||
$LogPrintExit info ("Applying migration: " . $Migration) false;
|
$LogPrintExit info ("Applying migration: " . $Migration) false;
|
||||||
[ :parse $Migration ];
|
[ :parse $Migration ];
|
||||||
}
|
}
|
||||||
|
:set NotificationMessage ($NotificationMessage . \
|
||||||
|
"\n * " . $GlobalConfigChanges->[ :tostr $I ]);
|
||||||
|
$LogPrintExit info ("Change: " . $GlobalConfigChanges->[ :tostr $I ]) false;
|
||||||
}
|
}
|
||||||
:set GlobalConfigChanges;
|
:set GlobalConfigChanges;
|
||||||
:set GlobalConfigMigration;
|
:set GlobalConfigMigration;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue