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

This commit is contained in:
JCount 2018-07-28 15:15:05 -04:00 committed by ilovezfs
parent cb149358e7
commit 4870836505

View file

@ -113,7 +113,7 @@ class MysqlAT57 < 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/"mysqld", "--initialize-insecure", "--user=#{ENV["USER"]}",
"--basedir=#{prefix}", "--datadir=#{datadir}", "--tmpdir=/tmp"