Create and chown log dir in upstart export.

This commit is contained in:
Phil Hagelberg
2012-04-24 17:24:53 -07:00
parent f46408e8be
commit 7b85ad7c1a
+3 -1
View File
@@ -36,6 +36,8 @@ class Foreman::Export::Upstart < Foreman::Export::Base
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