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;