diff options
author | Tim Smith <tsmith@chef.io> | 2018-08-10 10:00:14 -0700 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2018-08-10 10:00:14 -0700 |
commit | d12819aeeb6358330395b9119677d020a130f8fc (patch) | |
tree | 3de6bc775c73d9b31fcdb421b9ea46b0ac6b580f /lib/chef/provider | |
parent | 1cc286d839129950dea85d3f25b960e8fb470f4f (diff) | |
download | chef-d12819aeeb6358330395b9119677d020a130f8fc.tar.gz |
Use the full path to /usr/bin/profiles
This prevents an app named profiles being later in the path, which was reported by a user.
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/provider')
-rw-r--r-- | lib/chef/provider/osx_profile.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/provider/osx_profile.rb b/lib/chef/provider/osx_profile.rb index 66b5c26137..531d822334 100644 --- a/lib/chef/provider/osx_profile.rb +++ b/lib/chef/provider/osx_profile.rb @@ -188,14 +188,14 @@ class Chef end def install_profile(profile_path) - cmd = [ "profiles", "-I", "-F", profile_path ] + cmd = [ "/usr/bin/profiles", "-I", "-F", profile_path ] logger.trace("cmd: #{cmd.join(" ")}") shellout_results = shell_out(*cmd) shellout_results.exitstatus end def remove_profile - cmd = [ "profiles", "-R", "-p", @new_profile_identifier ] + cmd = [ "/usr/bin/profiles", "-R", "-p", @new_profile_identifier ] logger.trace("cmd: #{cmd.join(" ")}") shellout_results = shell_out(*cmd) shellout_results.exitstatus @@ -225,7 +225,7 @@ class Chef end def write_installed_profiles(tempfile) - shell_out!( "profiles", "-P", "-o", tempfile ) + shell_out!( "/usr/bin/profiles", "-P", "-o", tempfile ) end def read_plist(xml_file) |