Skip to content

Commit

Permalink
Merge branch 'upstream'
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewGarson committed Jul 16, 2013
2 parents f63834b + fe843dd commit 7a1406e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
case node['platform_family']
when "windows"
if ENV['ProgramFiles'] == ENV['ProgramFiles(x86)']
default['zabbix']['etc_dir'] = ::File.join(ENV['homedrive'], "Program Files", "Zabbix Agent")
#if user has never logged into an interactive session then ENV['homedrive'] will be nil
default['zabbix']['etc_dir'] = ::File.join((ENV['homedrive'] || "C:"), "Program Files", "Zabbix Agent")
else
default['zabbix']['etc_dir'] = ::File.join(ENV['ProgramFiles'], "Zabbix Agent")
end
Expand Down

0 comments on commit 7a1406e

Please sign in to comment.