Skip to content

Commit

Permalink
Merge pull request #254 from bdclark/not_etc
Browse files Browse the repository at this point in the history
Guard against owning /etc
  • Loading branch information
johnbellone committed Dec 11, 2015
2 parents d86cef5 + d461755 commit f316bee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libraries/consul_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ def tls?
owner new_resource.owner
group new_resource.group
mode '0755'
not_if { ::File.dirname(new_resource.path) == '/etc' }
end

file new_resource.path do
Expand Down

0 comments on commit f316bee

Please sign in to comment.