Unverified Commit 5424c48b authored by Joost van der Hoff's avatar Joost van der Hoff
Browse files

Don't (re-)run installer if Chocolatey already installed

(even if the upgrade attribute is set to true)
parent bc1c2a59
......@@ -36,5 +36,5 @@ powershell_script 'Install Chocolatey' do
environment node['chocolatey']['install_vars']
cwd Chef::Config['file_cache_path']
code install_ps1
not_if { chocolatey_installed? && (node['chocolatey']['upgrade'] == false) }
not_if { chocolatey_installed? }
end
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment