postgresql: fix initdb postinstall check.

This commit is contained in:
Mike McQuaid 2016-02-15 09:26:41 +00:00
parent 8b9271a7c3
commit 56eadadcff

View file

@ -84,7 +84,7 @@ class Postgresql < Formula
def post_install
(var/"postgres").mkpath
unless File.exist? "#{var}/postgres"
unless File.exist? "#{var}/postgres/PG_VERSION"
system "#{bin}/initdb", "#{var}/postgres"
end
end