Permalink
Browse files

Create and chown log dir in upstart export.

  • Loading branch information...
1 parent f46408e commit 7b85ad7c1a2fd49ed4b2c3bf8367c70c1eac1c34 @technomancy technomancy committed Apr 25, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/foreman/export/upstart.rb
@@ -36,6 +36,8 @@ def export
write_file "#{location}/#{app}-#{process.name}-#{num}.conf", process_config
end
end
- end
+ FileUtils.mkdir_p(log_root) rescue error "could not create #{log_root}"
+ FileUtils.chown(user, nil, log_root) rescue error "could not chown #{log_root} to #{user}"
+ end
end

0 comments on commit 7b85ad7

Please sign in to comment.