From 3b10a915265e9dcf56678de4a7529022283f0596 Mon Sep 17 00:00:00 2001 From: Shreya Malviya Date: Thu, 12 May 2022 18:52:52 +0530 Subject: [PATCH] Island: Modify temporary mongodb zip path in linux mongo installation script --- monkey/monkey_island/windows/install_mongo.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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"