diff options
author | Mike Dodge <mikedodge04@fb.com> | 2015-03-10 23:46:21 -0700 |
---|---|---|
committer | Mike Dodge <mikedodge04@fb.com> | 2015-03-10 23:46:21 -0700 |
commit | d931e5eab8fae4204e7415d82f6b492f490df18d (patch) | |
tree | de3bf454c8499407e61cfb1f7a17d308f2d3267b /lib/chef/provider/service/macosx.rb | |
parent | c9b78f9dc2cd13cf3e8cbb5115fa39d80548e80f (diff) | |
download | chef-d931e5eab8fae4204e7415d82f6b492f490df18d.tar.gz |
small change to the base user cmd
Diffstat (limited to 'lib/chef/provider/service/macosx.rb')
-rw-r--r-- | lib/chef/provider/service/macosx.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/chef/provider/service/macosx.rb b/lib/chef/provider/service/macosx.rb index b92deeaf42..4a782146c0 100644 --- a/lib/chef/provider/service/macosx.rb +++ b/lib/chef/provider/service/macosx.rb @@ -58,8 +58,7 @@ class Chef @console_user = Etc.getlogin Chef::Log.debug("Console User: '#{@console_user}'") cmd = "su " - param = '' - param = "-l " if not node['platform_version'].include?('10.10') + param = !node['platform_version'].include?('10.10') ? '-l ' : '' @base_user_cmd = cmd + param + "#{@console_user} -c " # Default LauchAgent session should be Aqua @session_type = 'Aqua' if @session_type.nil? |