From 2bc9cf1ee053161ad015d9f94026629fed3536a4 Mon Sep 17 00:00:00 2001 From: Saku Ytti Date: Fri, 11 Jul 2014 14:42:44 +0300 Subject: create config dir, before pointing log file there thanks to @richih --- lib/oxidized/config.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/oxidized/config.rb') diff --git a/lib/oxidized/config.rb b/lib/oxidized/config.rb index 50b1e71..9c2faff 100644 --- a/lib/oxidized/config.rb +++ b/lib/oxidized/config.rb @@ -43,7 +43,7 @@ module Oxidized CFG = CFGS.cfg # convenienence, instead of Config.cfg.password, CFG.password Log.level = Logger::INFO unless CFG.debug + raise NoConfig, 'edit ~/.config/oxidized/config' if CFGS.create Log.file = CFG.log if CFG.log - raise NoConfig, 'edit ~/.config/oxidized/config' if CFGS.create end -- cgit v1.2.1