Unverified Commit 85cf51f9 authored by Joost van der Hoff's avatar Joost van der Hoff
Browse files

Upgrade Chocolatey using chocolatey_package if upgrade requested

parent 5424c48b
......@@ -38,3 +38,9 @@ powershell_script 'Install Chocolatey' do
code install_ps1
not_if { chocolatey_installed? }
chocolatey_package 'chocolatey' do
action :upgrade
version node['chocolatey']['install_vars']['chocolateyVersion']
only_if { node['chocolatey']['upgrade'] }
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