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
parent
cce648244d
commit
a23e9a36a1
|
@ -285,6 +285,11 @@ namespace OpenSim.Framework
|
||||||
console_result = attribute;
|
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)
|
switch (configOption.configurationType)
|
||||||
{
|
{
|
||||||
case ConfigurationOption.ConfigurationTypes.TYPE_STRING:
|
case ConfigurationOption.ConfigurationTypes.TYPE_STRING:
|
||||||
|
|
Loading…
Reference in New Issue