fusionpbx-install.sh/windows/resources/start-pgsql.ps1

7 lines
221 B
PowerShell
Raw Normal View History

2018-01-03 09:13:29 +01:00
Function Start-PSQL([string]$command) {
$location = Get-Location
Set-Location "C:\Program Files\PostgreSQL\10\bin"
$result = .\psql.exe --username=postgres -c "$command"
Set-Location $location
return $result
}