summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-08-10 10:00:14 -0700
committerTim Smith <tsmith@chef.io>2018-09-25 14:54:20 -0700
commitff2a5284396c4010ceafe0e018968cde26413c36 (patch)
tree75faff3e87d0fa8812bf4512d4ccfc300897ba75
parent9f9ecd1b31193b617326d9d2bb2115b7af91bd96 (diff)
downloadchef-ff2a5284396c4010ceafe0e018968cde26413c36.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>
-rw-r--r--lib/chef/provider/osx_profile.rb6
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