Merge pull request #4166 from tokejepsen/bugfix/run_mongo_directory

This commit is contained in:
Ondřej Samohel 2022-12-02 17:10:17 +01:00 committed by GitHub
commit 45bf690279
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -112,4 +112,6 @@ $mongoPath = Find-Mongo $preferred_version
Write-Color -Text ">>> ", "Using DB path: ", "[ ", "$($dbpath)", " ]" -Color Green, Gray, Cyan, White, Cyan
Write-Color -Text ">>> ", "Port: ", "[ ", "$($port)", " ]" -Color Green, Gray, Cyan, White, Cyan
New-Item -ItemType Directory -Force -Path $($dbpath)
Start-Process -FilePath $mongopath "--dbpath $($dbpath) --port $($port)" -PassThru | Out-Null