PostgreSQL: Validation and Installer parameters fix. (#1148)

* Removed PostgreSQL server from path.
This commit is contained in:
Darii Nurgaleev
2020-06-30 20:43:47 +03:00
committed by GitHub
parent e16e7a7e30
commit 64f438fd7a
3 changed files with 4 additions and 3 deletions
@@ -9,7 +9,7 @@ Set-SystemVariable -SystemVariable PGUSER -Value $pgUser
Set-SystemVariable -SystemVariable PGPASSWORD -Value $pgPwd
#Install latest PostgreSQL
Choco-Install -PackageName postgresql -ArgumentList "--params", "/Password:$pgPwd", "/NoPath", "--params-global", "--debug", "--verbose"
Choco-Install -PackageName postgresql -ArgumentList "--params", "'/Password:$pgPwd /NoPath'", "--params-global", "--debug", "--verbose"
#Get Path to pg_ctl.exe
$pgPath = (Get-CimInstance Win32_Service -Filter "Name LIKE 'postgresql-%'").PathName