deb package fails to start elasticsearch

The ability to use es.default prefix broke the deb package that uses it now.
This commit is contained in:
Shay Banon 2012-06-25 21:59:12 +02:00
parent 5533fe2b88
commit 11ca3ea0ec
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ public class InternalSettingsPerparer {
// if its default, then load it, but also load form env
if (System.getProperty("es.default.config") != null) {
loadFromEnv = true;
settingsBuilder.loadFromUrl(environment.resolveConfig(System.getProperty("es.config")));
settingsBuilder.loadFromUrl(environment.resolveConfig(System.getProperty("es.default.config")));
}
// if explicit, just load it and don't load from env
if (System.getProperty("es.config") != null) {