diff options
author | Tim Smith <tsmith84@gmail.com> | 2021-02-05 21:36:58 -0800 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2021-02-05 21:36:58 -0800 |
commit | b47b36da6650b682153c81f7026ca7f899a25e21 (patch) | |
tree | 7ab83d6bfc166603f7e308a49c15634087a3a413 | |
parent | cfe5f448446c51bad7d2d549e15de92643e86ca2 (diff) | |
download | chef-b47b36da6650b682153c81f7026ca7f899a25e21.tar.gz |
Fix permissions on dirs to be 775 not 755
This matches the script
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | lib/chef/resource/homebrew_install.rb | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/lib/chef/resource/homebrew_install.rb b/lib/chef/resource/homebrew_install.rb index b734b57764..9616973443 100644 --- a/lib/chef/resource/homebrew_install.rb +++ b/lib/chef/resource/homebrew_install.rb @@ -76,19 +76,15 @@ class Chef end # Creating the basic directory structure needed for Homebrew - directories = ["bin", "etc", "include", "lib", "sbin", "share", "var", "opt", - "share/zsh", "share/zsh/site-functions", - "var/homebrew", "var/homebrew/linked", - "Cellar", "Caskroom", "Homebrew", "Frameworks" - ].freeze - directories.each do |dir| - directory "/usr/local/#{dir}" do - mode "0755" - owner new_resource.user - group "admin" - action :create - end - end + ["bin", "etc", "include", "lib", "sbin", "share", "var", "opt", "share/zsh", "share/zsh/site-functions", + "var/homebrew", "var/homebrew/linked", "Cellar", "Caskroom", "Homebrew", "Frameworks" ].each do |dir| + directory "/usr/local/#{dir}" do + mode "0775" + owner new_resource.user + group "admin" + action :create + end + end directory ::File.join(Dir.home(new_resource.user), "/Library/Caches/Homebrew") do mode "0755" |