summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaku Ytti <saku@ytti.fi>2014-07-11 14:42:44 +0300
committerSaku Ytti <saku@ytti.fi>2014-07-11 14:42:44 +0300
commit2bc9cf1ee053161ad015d9f94026629fed3536a4 (patch)
tree5165df11e358a7d84eb6a47cb96ca4c97aaeb1b1
parent6289bb2dc76bc475d329d0a12ab1ffabba8011a3 (diff)
create config dir, before pointing log file there
thanks to @richih
-rw-r--r--lib/oxidized/config.rb2
1 files changed, 1 insertions, 1 deletions
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