mirror of
https://github.com/nymurbd/MikroTik-scripts.git
synced 2025-07-03 06:34:29 +02:00
global-functions: $ScriptInstallUpdate: handle config version decrease...
... and log a warning.
This commit is contained in:
parent
47a657d25c
commit
f67dc0218b
1 changed files with 7 additions and 1 deletions
|
@ -796,7 +796,13 @@
|
|||
}
|
||||
}
|
||||
|
||||
:if ($ExpectedConfigVersionBefore != $ExpectedConfigVersion) do={
|
||||
:if ($ExpectedConfigVersionBefore > $ExpectedConfigVersion) do={
|
||||
$LogPrintExit2 warning $0 ("The configuration version decreased from " . \
|
||||
$ExpectedConfigVersionBefore . " to " . $ExpectedConfigVersion . \
|
||||
". Installed an older version?") false;
|
||||
}
|
||||
|
||||
:if ($ExpectedConfigVersionBefore < $ExpectedConfigVersion) do={
|
||||
:global GlobalConfigChanges;
|
||||
:global GlobalConfigMigration;
|
||||
:local ChangeLogCode;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue