Skip to content

Commit

Permalink
fixup: Use environment variable to accept Chef license
Browse files Browse the repository at this point in the history
It seems the command-line option can't be placed such that it isn't
interpreted as a subcommand instead of an option (whether before or
after the exec subcommand), so gotta try with the environment variable
instead.
  • Loading branch information
Joost van der Hoff committed Mar 3, 2020
1 parent 4dcf6c7 commit f558f55
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ install:
- ps: iex (irm https://omnitruck.chef.io/install.ps1); Install-Project -Project chefdk -channel current
- ps: 'Get-CimInstance win32_operatingsystem -Property Caption, OSArchitecture, Version | fl Caption, OSArchitecture, Version'
- ps: $PSVersionTable
- c:\opscode\chefdk\bin\chef.bat exec --chef-license accept ruby --version
- ps: '$env:CHEF_LICENSE = "accept"'
- c:\opscode\chefdk\bin\chef.bat exec ruby --version
- ps: secedit /export /cfg $env:temp/export.cfg
- ps: ((get-content $env:temp/export.cfg) -replace ('PasswordComplexity = 1', 'PasswordComplexity = 0')) | Out-File $env:temp/export.cfg
- ps: ((get-content $env:temp/export.cfg) -replace ('MinimumPasswordLength = 8', 'MinimumPasswordLength = 0')) | Out-File $env:temp/export.cfg
Expand Down

0 comments on commit f558f55

Please sign in to comment.