diff options
author | Tim Smith <tsmith@chef.io> | 2018-08-10 10:00:14 -0700 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2018-09-25 11:12:24 -0700 |
commit | b31f57fb4a726756158bc23748a1476abc047c50 (patch) | |
tree | 656f57bebc555d84b39a0612af839a6a7219e611 | |
parent | 804b87ecb878b1b655ca0c5511028a069c2ce82f (diff) | |
download | chef-profiles.tar.gz |
Use the full path to /usr/bin/profilesprofiles
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>
-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 1d87f29eb2..07e74165b3 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}'" Chef::Log.debug("cmd: #{cmd}") 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}'" Chef::Log.debug("cmd: #{cmd}") shellout_results = shell_out(cmd) shellout_results.exitstatus @@ -225,7 +225,7 @@ class Chef end def write_installed_profiles(tempfile) - cmd = "profiles -P -o '#{tempfile}'" + cmd = "/usr/bin/profiles -P -o '#{tempfile}'" shell_out!(cmd) end |