1
0
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:
Christian Hesse
2023-01-12 08:17:48 +01:00
parent 47a657d25c
commit f67dc0218b

View File

@@ -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;