mirror of
https://github.com/actions/runner-images.git
synced 2025-12-30 22:07:58 +08:00
PostgreSQL: Validation and Installer parameters fix. (#1148)
* Removed PostgreSQL server from path.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
$pgReadyPath = Join-Path $PGBIN "pg_isready.exe"
|
||||
$pgReadyPath = Join-Path ${env:PGBIN} "pg_isready.exe"
|
||||
$pgReady = Start-Process -FilePath $pgReadyPath -Wait -PassThru
|
||||
$exitCode = $pgReady.ExitCode
|
||||
|
||||
|
||||
Reference in New Issue
Block a user