From 9c4b96829ee116251b8997f97e0de08d2e430353 Mon Sep 17 00:00:00 2001 From: Javi Fontan Date: Tue, 5 Oct 2010 12:37:13 +0200 Subject: [PATCH] Bug creating config file in system wide installation In system wide installation oned was creating "config" file in log directory (/var/log/one) but should be created in var directory (/var/lib/one) --- src/nebula/Nebula.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nebula/Nebula.cc b/src/nebula/Nebula.cc index 82ad1f3b2a..094c267292 100644 --- a/src/nebula/Nebula.cc +++ b/src/nebula/Nebula.cc @@ -64,7 +64,7 @@ void Nebula::start() throw runtime_error("Could not load nebula configuration file."); } - string config_fname = log_location + "config"; + string config_fname = var_location + "config"; ofstream config_file(config_fname.c_str(), ios_base::trunc & ios_base::out); if (config_file.fail() == false)