From d4e3a7fe81a155be841bc0d182aa7a14083ffa3e Mon Sep 17 00:00:00 2001 From: BlueWall Date: Sat, 19 Nov 2011 11:01:51 -0500 Subject: Shell Environment Variables in config Adding updated Nini and support to use shell environment variables in OpenSimulator configuration. Nini @ https://github.com/BlueWall/Nini-Dev --- OpenSim/Region/Application/OpenSimBase.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/Application/OpenSimBase.cs') diff --git a/OpenSim/Region/Application/OpenSimBase.cs b/OpenSim/Region/Application/OpenSimBase.cs index 553786b..0a78df2 100644 --- a/OpenSim/Region/Application/OpenSimBase.cs +++ b/OpenSim/Region/Application/OpenSimBase.cs @@ -108,6 +108,13 @@ namespace OpenSim get { return m_clientServers; } } + protected EnvConfigSource m_EnvConfigSource = new EnvConfigSource(); + + public EnvConfigSource envConfigSource + { + get { return m_EnvConfigSource; } + } + protected List m_clientServers = new List(); public uint HttpServerPort @@ -142,7 +149,7 @@ namespace OpenSim protected virtual void LoadConfigSettings(IConfigSource configSource) { m_configLoader = new ConfigurationLoader(); - m_config = m_configLoader.LoadConfigSettings(configSource, out m_configSettings, out m_networkServersInfo); + m_config = m_configLoader.LoadConfigSettings(configSource, envConfigSource, out m_configSettings, out m_networkServersInfo); ReadExtraConfigSettings(); } -- cgit v1.1