From 2268218b76a3cdb1536fb0bebe3961ad68e85e00 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 7 Oct 2013 15:35:48 +0100 Subject: mysql: move some post_install back to install. --- Library/Formula/mysql.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Library') diff --git a/Library/Formula/mysql.rb b/Library/Formula/mysql.rb index 27f4c994b..679fd7348 100644 --- a/Library/Formula/mysql.rb +++ b/Library/Formula/mysql.rb @@ -114,10 +114,13 @@ class Mysql < Formula # Move mysqlaccess to libexec mv "#{bin}/mysqlaccess", libexec mv "#{bin}/mysqlaccess.conf", libexec + + # Make sure the var/mysql directory exists + (var+"mysql").mkpath end def post_install - # Make sure the var/mysql directory exists + # TODO: remove after bottle updated. (var+"mysql").mkpath unless File.exist? "#{var}/mysql/mysql/user.frm" -- cgit v1.2.3