mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 21:38:13 +00:00
PostgreSQL: Validation and Installer parameters fix. (#1148)
* Removed PostgreSQL server from path.
This commit is contained in:
@@ -4,7 +4,8 @@ function Get-PostgreSQLMarkdown
|
||||
$pgService = Get-CimInstance Win32_Service -Filter "Name LIKE 'postgresql-%'"
|
||||
$pgPath = $pgService.PathName
|
||||
$pgRoot = $pgPath.split('"')[1].replace("\bin\pg_ctl.exe", "")
|
||||
$pgVersion = (pg_config --version).split()[1].Trim()
|
||||
$env:Path += ";${env:PGBIN}"
|
||||
$pgVersion = (postgres --version).split()[2].Trim()
|
||||
$content = [PSCustomObject]@{
|
||||
Version = $pgVersion
|
||||
UserName = $env:PGUSER
|
||||
|
||||
Reference in New Issue
Block a user