Skip to content

Commit

Permalink
percona-server: fix ENV["CI"] usage.
Browse files Browse the repository at this point in the history
Part of #70493.
  • Loading branch information
MikeMcQuaid committed Feb 8, 2021
1 parent c31a327 commit 1db9b89
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Formula/percona-server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"]}",
Expand Down

0 comments on commit 1db9b89

Please sign in to comment.