Make deploy_windows.ps1.sh download the configuration, avoiding need for duplicate git clone.

This commit is contained in:
Daniel Goldberg 2020-01-04 23:27:26 +02:00
parent 43adea0728
commit cb8d2eb0ef
1 changed files with 90 additions and 87 deletions

View File

@ -7,6 +7,9 @@ function Deploy-Windows([String] $monkey_home = (Get-Item -Path ".\").FullName,
# Import the config variables
$config_filename = "config.ps1"
$config_url = "https://raw.githubusercontent.com/guardicore/monkey/" + $branch + "/deployment_scripts/config.ps1"
$webClient.DownloadFile($config_url, $config_filename)
. ./config.ps1
"Config variables from config.ps1 imported"