From 9e40ef96a2b320e413a39281beb12f7b2d6d219a Mon Sep 17 00:00:00 2001 From: Toke Stuart Jepsen Date: Fri, 2 Dec 2022 15:29:45 +0000 Subject: [PATCH] Ensure Mongo database directory exists. --- tools/run_mongo.ps1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/run_mongo.ps1 b/tools/run_mongo.ps1 index c64ff75969d..85b94b0971f 100644 --- a/tools/run_mongo.ps1 +++ b/tools/run_mongo.ps1 @@ -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