Create datadir in post install.
* Fixes formula when bottled. Closes Homebrew/homebrew#26840. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
0e8c8d79ca
commit
d51e5eaacc
1 changed files with 2 additions and 3 deletions
|
@ -119,12 +119,11 @@ class PerconaServer < Formula
|
|||
# Move mysqlaccess to libexec
|
||||
mv "#{bin}/mysqlaccess", libexec
|
||||
mv "#{bin}/mysqlaccess.conf", libexec
|
||||
|
||||
# Make sure that data directory exists
|
||||
datadir.mkpath
|
||||
end
|
||||
|
||||
def post_install
|
||||
# Make sure that data directory exists
|
||||
datadir.mkpath
|
||||
unless File.exist? "#{datadir}/mysql/user.frm"
|
||||
ENV['TMPDIR'] = nil
|
||||
system "#{bin}/mysql_install_db", "--verbose", "--user=#{ENV["USER"]}",
|
||||
|
|
Loading…
Reference in a new issue