diff --git a/monkey/monkey_island/windows/install_mongo.ps1 b/monkey/monkey_island/windows/install_mongo.ps1 index b6a3ff3c1..4f7b3aa4e 100644 --- a/monkey/monkey_island/windows/install_mongo.ps1 +++ b/monkey/monkey_island/windows/install_mongo.ps1 @@ -4,7 +4,7 @@ param( ) $MONGODB_URL = "https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2012plus-4.2.20.zip" -$TEMP_MONGODB_ZIP = ".\mongodb.zip" +$TEMP_MONGODB_ZIP = (Join-Path -path $(Get-Location) -ChildPath ".\mongodb.zip") if (!(Test-Path -Path (Join-Path -Path $binDir -ChildPath "mongodb"))) @@ -21,6 +21,8 @@ if (!(Test-Path -Path (Join-Path -Path $binDir -ChildPath "mongodb"))) ($_.Name -like "mongodb*") } | Select-Object -ExpandProperty Name + Write-Output $mongodb_folder_name + # Move mongod file and license file from extracted folder to mongodb folder New-Item -ItemType directory -Path (Join-Path -Path $binDir -ChildPath "mongodb") "Moving extracted mongod and license files"