Skip to content

Commit

Permalink
Create datadir in post install.
Browse files Browse the repository at this point in the history
* Fixes formula when bottled.

Closes Homebrew/legacy-homebrew#26840.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
  • Loading branch information
finn authored and adamv committed Feb 21, 2014
1 parent 0e8c8d7 commit d51e5ea
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Formula/percona-server.rb
Expand Up @@ -119,12 +119,11 @@ def install
# Move mysqlaccess to libexec
mv "#{bin}/mysqlaccess", libexec
mv "#{bin}/mysqlaccess.conf", libexec

# Make sure that data directory exists
datadir.mkpath
end

def post_install
# Make sure that data directory exists
datadir.mkpath
unless File.exist? "#{datadir}/mysql/user.frm"
ENV['TMPDIR'] = nil
system "#{bin}/mysql_install_db", "--verbose", "--user=#{ENV["USER"]}",
Expand Down

0 comments on commit d51e5ea

Please sign in to comment.