From 11ca3ea0ecd0dfc329c20a856101a99242a3ce72 Mon Sep 17 00:00:00 2001 From: Shay Banon Date: Mon, 25 Jun 2012 21:59:12 +0200 Subject: [PATCH] deb package fails to start elasticsearch The ability to use es.default prefix broke the deb package that uses it now. --- .../elasticsearch/node/internal/InternalSettingsPerparer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/elasticsearch/node/internal/InternalSettingsPerparer.java b/src/main/java/org/elasticsearch/node/internal/InternalSettingsPerparer.java index ce3e13b1bb2..eb580cfd165 100644 --- a/src/main/java/org/elasticsearch/node/internal/InternalSettingsPerparer.java +++ b/src/main/java/org/elasticsearch/node/internal/InternalSettingsPerparer.java @@ -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) {