diff --git a/Formula/percona-server.rb b/Formula/percona-server.rb index 7cbd3b77d2dbc..09f23eba93c98 100644 --- a/Formula/percona-server.rb +++ b/Formula/percona-server.rb @@ -118,10 +118,12 @@ def install end def post_install - return if ENV["CI"] + # Make sure the var/mysql directory exists + (var/"mysql").mkpath + + # Don't initialize database, it clashes when testing other MySQL-like implementations. + return if ENV["HOMEBREW_GITHUB_ACTIONS"] - # Make sure the datadir exists - datadir.mkpath unless (datadir/"mysql/user.frm").exist? ENV["TMPDIR"] = nil system bin/"mysqld", "--initialize-insecure", "--user=#{ENV["USER"]}",