Change "config save" to "config save <filename>", which is mandatory.
File name is enforced to NOT be OpenSim.iniprioritization
parent
182693628c
commit
26863c04a5
|
@ -628,8 +628,20 @@ namespace OpenSim
|
|||
break;
|
||||
|
||||
case "save":
|
||||
m_log.Info("Saving configuration file: " + Application.iniFilePath);
|
||||
m_config.Save(Application.iniFilePath);
|
||||
if (cmdparams.Length < 2)
|
||||
{
|
||||
m_log.Error("SYNTAX: " + n + " SAVE FILE");
|
||||
return;
|
||||
}
|
||||
|
||||
if (Application.iniFilePath == cmdparams[1])
|
||||
{
|
||||
m_log.Error("FILE can not be "+Application.iniFilePath);
|
||||
return;
|
||||
}
|
||||
|
||||
m_log.Info("Saving configuration file: " + cmdparams[1]);
|
||||
m_config.Save(cmdparams[1]);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue