aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2013-10-07 15:35:48 +0100
committerMike McQuaid2013-10-10 16:46:49 +0100
commit2268218b76a3cdb1536fb0bebe3961ad68e85e00 (patch)
treea0410562fead2130a28a4f26dba364c5ec4f5ff5 /Library
parent0106e538f2b33f6b782f56e1c89d92a1dafe427c (diff)
downloadhomebrew-2268218b76a3cdb1536fb0bebe3961ad68e85e00.tar.bz2
mysql: move some post_install back to install.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/mysql.rb5
1 files changed, 4 insertions, 1 deletions
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"