Substitutes the value of an environment variable if the value of a region configuration variable begins with a "$" character. Should be useful when moving region configs between hosts

0.6.2-post-fixes
Dahlia Trimble 2008-12-26 09:14:49 +00:00
parent cce648244d
commit a23e9a36a1
1 changed files with 5 additions and 0 deletions

View File

@ -285,6 +285,11 @@ namespace OpenSim.Framework
console_result = attribute;
}
// if the first character is a "$", assume it's the name
// of an environment variable and substitute with the value of that variable
if (console_result.StartsWith("$"))
console_result = System.Environment.GetEnvironmentVariable(console_result.Substring(1));
switch (configOption.configurationType)
{
case ConfigurationOption.ConfigurationTypes.TYPE_STRING: