mysql@5.6: fix detection that post-install has already been run

This commit is contained in:
JCount 2018-07-28 15:16:48 -04:00 committed by ilovezfs
parent 4870836505
commit ffd8916750

View file

@ -120,7 +120,7 @@ class MysqlAT56 < Formula
def post_install
# Make sure the datadir exists
datadir.mkpath
unless (datadir/"mysql/user.frm").exist?
unless (datadir/"mysql/general_log.CSM").exist?
ENV["TMPDIR"] = nil
system bin/"mysql_install_db", "--verbose", "--user=#{ENV["USER"]}",
"--basedir=#{prefix}", "--datadir=#{datadir}", "--tmpdir=/tmp"