From c2a8d43281b5a839191ff9d102c2d5ae0b4466e4 Mon Sep 17 00:00:00 2001 From: "DESKTOP-RTLN3BA\\$punk" Date: Tue, 3 Mar 2026 13:42:20 -0800 Subject: [PATCH] fix: update dump file handling in install.ps1 to read content directly for PostgreSQL restoration --- docker/scripts/install.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/scripts/install.ps1 b/docker/scripts/install.ps1 index 0c20d74df..2d39e4462 100644 --- a/docker/scripts/install.ps1 +++ b/docker/scripts/install.ps1 @@ -213,7 +213,7 @@ if ($MigrationMode) { $restoreErrFile = Join-Path $env:TEMP "surfsense_restore_err.log" Push-Location $InstallDir - Invoke-NativeSafe { docker compose exec -T -e "PGPASSWORD=$DbPass" db psql -U $DbUser -d $DbName < $DumpFilePath 2>$restoreErrFile } | Out-Null + Invoke-NativeSafe { Get-Content -LiteralPath $DumpFilePath | docker compose exec -T -e "PGPASSWORD=$DbPass" db psql -U $DbUser -d $DbName 2>$restoreErrFile | Out-Null } | Out-Null Pop-Location $fatalErrors = @()