mariadb: tweak post_install for bottling.
This commit is contained in:
parent
b0753d0ac1
commit
42343b2c7d
1 changed files with 2 additions and 3 deletions
|
@ -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']}",
|
||||||
|
|
Loading…
Reference in a new issue