PostgreSQL@12: post_install: Use helper data dir methods

master
Markus Wein 2020-11-23 11:21:53 +01:00 committed by Mike McQuaid
parent 83a9fdd05e
commit 0a073b9d97
1 changed files with 2 additions and 2 deletions

View File

@ -81,9 +81,9 @@ class PostgresqlAT12 < Formula
return if ENV["CI"]
(var/"log").mkpath
postgresql_datadir.mkpath
versioned_postgresql_data_dir.mkpath
unless versioned_data_dir_exists?
system "#{bin}/initdb", "--locale=C", "-E", "UTF-8", postgresql_datadir
system "#{bin}/initdb", "--locale=C", "-E", "UTF-8", versioned_postgresql_data_dir
end
end