aboutsummaryrefslogtreecommitdiffstats
path: root/global-functions
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2021-02-23 14:48:28 +0100
committerGravatar Christian Hesse <mail@eworm.de>2021-02-23 14:48:28 +0100
commit0d91445cca3cac1f9e13f5d51f433a5c74a70a25 (patch)
tree824ffee6564f1f7e79cf26d8f49ba6c5cefdc5c2 /global-functions
parente99821c39a46ca36377c0ed134c532ec86d34bc2 (diff)
global-functions: $ScriptInstallUpdate: handle migration before message
Diffstat (limited to 'global-functions')
-rw-r--r--global-functions6
1 files changed, 3 insertions, 3 deletions
diff --git a/global-functions b/global-functions
index 502aa46..32ef6ba 100644
--- a/global-functions
+++ b/global-functions
@@ -710,14 +710,14 @@
:set NotificationMessage ($NotificationMessage . "\n\nChanges:");
[ :parse $ChangeLogCode ];
:for I from=($GlobalConfigVersion + 1) to=$ExpectedConfigVersion do={
- :set NotificationMessage ($NotificationMessage . \
- "\n * " . $GlobalConfigChanges->[ :tostr $I ]);
- $LogPrintExit info ("Change: " . $GlobalConfigChanges->[ :tostr $I ]) false;
:local Migration ($GlobalConfigMigration->[ :tostr $I ]);
:if ([ :typeof $Migration ] = "str") do={
$LogPrintExit info ("Applying migration: " . $Migration) false;
[ :parse $Migration ];
}
+ :set NotificationMessage ($NotificationMessage . \
+ "\n * " . $GlobalConfigChanges->[ :tostr $I ]);
+ $LogPrintExit info ("Change: " . $GlobalConfigChanges->[ :tostr $I ]) false;
}
:set GlobalConfigChanges;
:set GlobalConfigMigration;