mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
global-functions: $ScriptInstallUpdate: handle config version decrease...
... and log a warning.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user