Skip to content

Commit

Permalink
Merge pull request #415 from stackfeed/master
Browse files Browse the repository at this point in the history
Fix permission of generated config
  • Loading branch information
legal90 authored Mar 11, 2017
2 parents 88260ba + a6849a4 commit 793a33a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libraries/consul_definition.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def to_json
unless platform?('windows')
owner new_resource.user
group new_resource.group
mode '0640'
mode '0644'
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion test/integration/default/default_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
it { should be_file }
it { should be_owned_by 'root' }
it { should be_grouped_into 'consul' }
its('mode') { should cmp '0640' }
its('mode') { should cmp '0644' }
end

describe file("#{confd_dir}/consul_watch_check.json") do
Expand Down

0 comments on commit 793a33a

Please sign in to comment.