aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2023-01-12 08:17:48 +0100
committerGravatar Christian Hesse <mail@eworm.de>2023-01-12 15:40:05 +0100
commitf67dc0218bcfb62be3e839a63a1dee042909a6c6 (patch)
treecf2a27c937e5f7b471f1903fc0e8e716abd8652c
parent47a657d25c44910b548410dea84b092e5d5488dc (diff)
global-functions: $ScriptInstallUpdate: handle config version decrease...
... and log a warning.
-rw-r--r--global-functions8
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;