Skip to content

Commit

Permalink
mysql@5.6: 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 d27db58 commit 116a134
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Formula/mysql@5.6.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,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/general_log.CSM").exist?
ENV["TMPDIR"] = nil
system bin/"mysql_install_db", "--verbose", "--user=#{ENV["USER"]}",
Expand Down

0 comments on commit 116a134

Please sign in to comment.