mysql@5.7: fix detection that post-install has already been run
This commit is contained in:
parent
cb149358e7
commit
4870836505
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue