Skip to content

Commit

Permalink
Merge pull request #107 from GoSecure/bugfix-ignore-choco-404
Browse files Browse the repository at this point in the history
bugfix: Tolerate 404 errors on chocolatey installs
  • Loading branch information
obilodeau authored Oct 2, 2018
2 parents 01cb0a0 + 21d8b36 commit 09ef5af
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions malboxes/templates/snippets/provision_powershell.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@
}
{% if choco_packages %},
{
"type": "windows-shell",
"type": "powershell",
"inline": [
"choco install {{ choco_packages }} -y"
]
],
"valid_exit_codes": [ 0, 404 ]
}
{% endif %}
5 changes: 3 additions & 2 deletions malboxes/templates/snippets/provision_powershell_win7.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@
{% endif %}
{% if choco_packages %},
{
"type": "windows-shell",
"type": "powershell",
"inline": [
"choco install npcap --package-parameters '/winpcap_mode=yes' -y",
"choco install {{ choco_packages }} -y"
]
],
"valid_exit_codes": [ 0, 404 ]
}
{% endif %}

0 comments on commit 09ef5af

Please sign in to comment.