From a88bc50a168ae729307740fa84540e9571258b13 Mon Sep 17 00:00:00 2001 From: Diva Canto Date: Tue, 30 Dec 2014 20:05:12 -0800 Subject: Add support for expansion of key values in nini config files. Add loading of 3rd-party addin inis automatically. --- OpenSim/Region/Application/ConfigurationLoader.cs | 2 ++ bin/OpenSim.ini.example | 10 ++++++++++ bin/OpenSimDefaults.ini | 3 ++- 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/OpenSim/Region/Application/ConfigurationLoader.cs b/OpenSim/Region/Application/ConfigurationLoader.cs index b19e549..6e7bd1c 100644 --- a/OpenSim/Region/Application/ConfigurationLoader.cs +++ b/OpenSim/Region/Application/ConfigurationLoader.cs @@ -325,6 +325,8 @@ namespace OpenSim Environment.Exit(1); } } + + configSource.Source.ExpandKeyValues(); return success; } diff --git a/bin/OpenSim.ini.example b/bin/OpenSim.ini.example index 6d8c2bf..02ca13e 100644 --- a/bin/OpenSim.ini.example +++ b/bin/OpenSim.ini.example @@ -95,6 +95,16 @@ ;; Place to create a PID file ; PIDFile = "/tmp/OpenSim.exe.pid" + ;# {RegistryLocation} {} {Addins Registry Location} {} + ; Set path to directory for addin registry if you want addins outside of bin. + ; Information about the registered repositories and installed plugins will + ; be stored here. The OpenSim.exe process must have R/W access to the location. + ; RegistryLocation = "." + + ;# {Include-Addins} {} {Loads all inis of all addins} {} + ; Leave this as is if you want 3rd-party addins to be automatically initialized. + Include-Addins = "${RegistryLocation}/addins/*/*.ini" + ;# {region_info_source} {} {Where to load region from?} {filesystem web} filesystem ;; Determine where OpenSimulator looks for the files which tell it ;; which regions to server diff --git a/bin/OpenSimDefaults.ini b/bin/OpenSimDefaults.ini index 3e9514e..73fe59c 100644 --- a/bin/OpenSimDefaults.ini +++ b/bin/OpenSimDefaults.ini @@ -75,7 +75,7 @@ ; Set path to directory for plugin registry. Information about the ; registered repositories and installed plugins will be stored here. ; The OpenSim.exe process must have R/W access to the location. - ; RegistryLocation = "." + RegistryLocation = "." ; ## ; ## CLIENTS @@ -1877,3 +1877,4 @@ [Modules] Include-modules = "addon-modules/*/config/*.ini" + -- cgit v1.1