Island: Modify temporary mongodb zip path in linux mongo installation script

This commit is contained in:
Shreya Malviya 2022-05-12 18:52:52 +05:30
parent 8546330965
commit 3b10a91526
1 changed files with 3 additions and 1 deletions

View File

@ -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"