From b5e3922c0a0c175e0873e3efe76fc4a270ea0692 Mon Sep 17 00:00:00 2001 From: VakarisZ Date: Thu, 18 Nov 2021 12:05:47 +0200 Subject: [PATCH] Deploy: bugfix config.ps1 download and remove unused scoutsuite dir variable from it --- deployment_scripts/config.ps1 | 1 - deployment_scripts/deploy_windows.ps1 | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/deployment_scripts/config.ps1 b/deployment_scripts/config.ps1 index 1808d922f..e4dc7484b 100644 --- a/deployment_scripts/config.ps1 +++ b/deployment_scripts/config.ps1 @@ -24,7 +24,6 @@ $WINDOWS_64_BINARY_PATH = "monkey-windows-64.exe" # Other directories and paths ( most likely you dont need to configure) $MONKEY_ISLAND_DIR = Join-Path "\monkey" -ChildPath "monkey_island" $MONKEY_DIR = Join-Path "\monkey" -ChildPath "infection_monkey" -$SCOUTSUITE_DIR = Join-Path "\monkey" "common" "cloud" "scoutsuite" $TEMP_PYTHON_INSTALLER = ".\python.exe" $TEMP_MONGODB_ZIP = ".\mongodb.zip" $TEMP_OPEN_SSL_ZIP = ".\openssl.zip" diff --git a/deployment_scripts/deploy_windows.ps1 b/deployment_scripts/deploy_windows.ps1 index 876e4724b..22d228346 100644 --- a/deployment_scripts/deploy_windows.ps1 +++ b/deployment_scripts/deploy_windows.ps1 @@ -49,7 +49,7 @@ function Deploy-Windows([String] $monkey_home = (Get-Item -Path ".\").FullName, # Import the config variables $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" $webClient.DownloadFile($config_url, $config_filename) . ./config.ps1