mariadb: tweak post_install for bottling.

This commit is contained in:
Mike McQuaid 2014-02-25 12:06:57 +00:00
parent b0753d0ac1
commit 42343b2c7d

View file

@ -123,12 +123,11 @@ class Mariadb < Formula
ln_s "#{prefix}/support-files/mysql.server", bin ln_s "#{prefix}/support-files/mysql.server", bin
end end
# Make sure the var/mysql directory exists
(var+"mysql").mkpath
end end
def post_install def post_install
# Make sure the var/mysql directory exists
(var+"mysql").mkpath
unless File.exist? "#{var}/mysql/mysql/user.frm" unless File.exist? "#{var}/mysql/mysql/user.frm"
ENV['TMPDIR'] = nil ENV['TMPDIR'] = nil
system "#{bin}/mysql_install_db", '--verbose', "--user=#{ENV['USER']}", system "#{bin}/mysql_install_db", '--verbose', "--user=#{ENV['USER']}",