Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Log folder permission. #83

Merged
merged 2 commits into from
Apr 8, 2015
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions recipes/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
include_recipe 'rsyslog::default'

directory node['rsyslog']['log_dir'] do
owner 'root'
group 'root'
owner node['rsyslog']['user'] ? node['rsyslog']['user'] : 'root'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably better to just make this owner node['rsyslog']['user'] and group node['rsyslog']['group'] rather than using if-then logic because these attributes will always be set (since they are defined in attributes/default.rb)

group node['rsyslog']['group'] ? node['rsyslog']['group'] : 'root'
mode '0755'
recursive true
end
Expand Down