mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00: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…
Reference in a new issue