slony: Check for postgres instead of pg_config

This is a better check for ensuring that a server is available.

Closes Homebrew/homebrew#15403.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
This commit is contained in:
Allen Huang 2012-10-11 17:52:36 +08:00 committed by Charlie Sharpsteen
parent 05c730c960
commit 31694c1e13

View file

@ -12,7 +12,7 @@ class PostgresqlInstalled < Requirement
EOS
end
def satisfied?
which 'pg_config'
which 'postgres'
end
def fatal?
true