Deploy: bugfix config.ps1 download and remove unused scoutsuite dir variable from it

This commit is contained in:
VakarisZ 2021-11-18 12:05:47 +02:00
parent 2fb2bc004f
commit b5e3922c0a
2 changed files with 1 additions and 2 deletions

View File

@ -24,7 +24,6 @@ $WINDOWS_64_BINARY_PATH = "monkey-windows-64.exe"
# Other directories and paths ( most likely you dont need to configure) # Other directories and paths ( most likely you dont need to configure)
$MONKEY_ISLAND_DIR = Join-Path "\monkey" -ChildPath "monkey_island" $MONKEY_ISLAND_DIR = Join-Path "\monkey" -ChildPath "monkey_island"
$MONKEY_DIR = Join-Path "\monkey" -ChildPath "infection_monkey" $MONKEY_DIR = Join-Path "\monkey" -ChildPath "infection_monkey"
$SCOUTSUITE_DIR = Join-Path "\monkey" "common" "cloud" "scoutsuite"
$TEMP_PYTHON_INSTALLER = ".\python.exe" $TEMP_PYTHON_INSTALLER = ".\python.exe"
$TEMP_MONGODB_ZIP = ".\mongodb.zip" $TEMP_MONGODB_ZIP = ".\mongodb.zip"
$TEMP_OPEN_SSL_ZIP = ".\openssl.zip" $TEMP_OPEN_SSL_ZIP = ".\openssl.zip"

View File

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