diff options
author | Christian Hesse <mail@eworm.de> | 2023-01-12 08:17:48 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2023-01-12 15:40:05 +0100 |
commit | f67dc0218bcfb62be3e839a63a1dee042909a6c6 (patch) | |
tree | cf2a27c937e5f7b471f1903fc0e8e716abd8652c | |
parent | 47a657d25c44910b548410dea84b092e5d5488dc (diff) |
global-functions: $ScriptInstallUpdate: handle config version decrease...
... and log a warning.
-rw-r--r-- | global-functions | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/global-functions b/global-functions index 9e89670..9ed6b4a 100644 --- a/global-functions +++ b/global-functions @@ -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; |