Output an error and quit if the master file is missing. Also rename
OpenSim.ini.example to bin/OpenSimDefaults.ini.exampleavinationmerge
parent
5e1aab92f5
commit
8e51ca3a7b
|
@ -85,6 +85,9 @@ namespace OpenSim
|
||||||
string masterFileName =
|
string masterFileName =
|
||||||
startupConfig.GetString("inimaster", "OpenSimDefaults.ini");
|
startupConfig.GetString("inimaster", "OpenSimDefaults.ini");
|
||||||
|
|
||||||
|
if (masterFileName == "none")
|
||||||
|
masterFileName = String.Empty;
|
||||||
|
|
||||||
if (IsUri(masterFileName))
|
if (IsUri(masterFileName))
|
||||||
{
|
{
|
||||||
if (!sources.Contains(masterFileName))
|
if (!sources.Contains(masterFileName))
|
||||||
|
@ -95,10 +98,19 @@ namespace OpenSim
|
||||||
string masterFilePath = Path.GetFullPath(
|
string masterFilePath = Path.GetFullPath(
|
||||||
Path.Combine(Util.configDir(), masterFileName));
|
Path.Combine(Util.configDir(), masterFileName));
|
||||||
|
|
||||||
if (masterFileName != String.Empty &&
|
if (masterFileName != String.Empty)
|
||||||
File.Exists(masterFilePath) &&
|
{
|
||||||
(!sources.Contains(masterFilePath)))
|
if (File.Exists(masterFilePath)
|
||||||
sources.Add(masterFilePath);
|
{
|
||||||
|
if (!sources.Contains(masterFilePath))
|
||||||
|
sources.Add(masterFilePath);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
m_log.ErrorFormat("Master ini file {0} not found", masterFilePath);
|
||||||
|
Environment.Exit(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue