mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 09:45:47 +08:00
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
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user