diff --git a/itchef/cookbooks/cpe_chrome/resources/cpe_chrome_posix.rb b/itchef/cookbooks/cpe_chrome/resources/cpe_chrome_posix.rb index bd2ed6dc..0eccf436 100755 --- a/itchef/cookbooks/cpe_chrome/resources/cpe_chrome_posix.rb +++ b/itchef/cookbooks/cpe_chrome/resources/cpe_chrome_posix.rb @@ -30,6 +30,7 @@ def install_repos return unless node.linux? return unless node['cpe_chrome']['manage_repo'] + return if node.fogvm? yum_repository 'google-chrome' do only_if { node.fedora? || node.centos? } @@ -221,14 +222,14 @@ def manage_chrome_macos(mprefs, prefs) else directory '/Library/Google' do mode '0755' - owner 'root' + owner node.root_user group 'wheel' action :create end # Create the Master Preferences file file master_path do mode '0644' - owner 'root' + owner node.root_user group 'wheel' action :create content Chef::JSONCompat.to_json_pretty(mprefs)