aboutsummaryrefslogtreecommitdiffstats
path: root/global-functions
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2021-02-25 12:36:49 +0100
committerGravatar Christian Hesse <mail@eworm.de>2021-02-25 12:50:20 +0100
commit60ec2009452ddd54c384bc9e81f19a8896409a9e (patch)
tree6ed866e1eb4958aff282b5e1a3aaa69a4c3b0238 /global-functions
parent948a2664c4d6edc85393b13437360439fbafb3f2 (diff)
global-functions: $ScriptInstallUpdate: expect global-config-overlay to be present
Diffstat (limited to 'global-functions')
-rw-r--r--global-functions11
1 files changed, 3 insertions, 8 deletions
diff --git a/global-functions b/global-functions
index 5f524c7..403d077 100644
--- a/global-functions
+++ b/global-functions
@@ -675,8 +675,7 @@
$LogPrintExit2 info $0 ("Updating script: " . $ScriptVal->"name") false;
/ system script set owner=($ScriptVal->"name") source=$SourceNew \
dont-require-permissions=$DontRequirePermissions $Script;
- :if ($ScriptVal->"name" = "global-config" && \
- [ :len [ / system script find where name="global-config-overlay" ] ] > 0) do={
+ :if ($ScriptVal->"name" = "global-config") do={
$LogPrintExit2 info $0 ("Reloading global configuration and overlay.") false;
:do {
/ system script { run global-config; run global-config-overlay; }
@@ -708,14 +707,10 @@
:global GlobalConfigChanges;
:global GlobalConfigMigration;
:local ChangeLogCode;
- :local ConfigScript "global-config";
- :if ([ :len [ / system script find where name="global-config-overlay" ] ] > 0) do={
- :set ConfigScript "global-config-overlay";
- }
:local NotificationMessage ("Current configuration on " . $Identity . \
- " is out of date. Please update " . $ConfigScript . ", then increase " . \
+ " is out of date. Please update global-config-overlay, then increase " . \
"\$GlobalConfigVersion (currently " . $GlobalConfigVersion . \
- ") to " . $ExpectedConfigVersion . " and re-run " . $ConfigScript . ".");
+ ") to " . $ExpectedConfigVersion . " and re-run global-config-overlay.");
$LogPrintExit2 info $0 ($NotificationMessage) false;
$LogPrintExit2 debug $0 ("Fetching changelog.") false;