From 89f97dc949048a4379cceba3a46040555db169db Mon Sep 17 00:00:00 2001 From: Tuno <81040793+gigberg@users.noreply.github.com> Date: Fri, 14 Feb 2025 21:22:07 +0800 Subject: [PATCH] Update mongodb.json Set-Content command --- bucket/mongodb.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bucket/mongodb.json b/bucket/mongodb.json index 6222565913410..d588f7aa8b90b 100644 --- a/bucket/mongodb.json +++ b/bucket/mongodb.json @@ -31,7 +31,7 @@ " $cfg = Get-Content \"$dir\\bin\\mongod.cfg\"", " $cfg = $cfg -replace '%MONGO_DATA_PATH%', \"$dir\\data\"", " $cfg = $cfg -replace '%MONGO_LOG_PATH%', \"$dir\\log\"", - " Set-Content \"$dir\\bin\\mongod.cfg\" $cfg -Encoding Ascii -Force", + " Set-Content -Path \"$dir\\bin\\mongod.cfg\" -Value \"$cfg\" -Encoding Ascii -Force", "}" ], "bin": [