diff options
| author | Mike McQuaid | 2014-02-25 12:06:57 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2014-02-25 12:08:56 +0000 |
| commit | 9991dcd7f1f454e2007b7049f4dda8bfafe13574 (patch) | |
| tree | c225672f29e5b15617012d69522063da21dd4196 /Library | |
| parent | a37d25e1417e4e4041363c8785779ebb445886ba (diff) | |
| download | homebrew-9991dcd7f1f454e2007b7049f4dda8bfafe13574.tar.bz2 | |
mariadb: tweak post_install for bottling.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/mariadb.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Library/Formula/mariadb.rb b/Library/Formula/mariadb.rb index 9d75e0e8a..14cef4e8e 100644 --- a/Library/Formula/mariadb.rb +++ b/Library/Formula/mariadb.rb @@ -123,12 +123,11 @@ class Mariadb < Formula ln_s "#{prefix}/support-files/mysql.server", bin end - - # Make sure the var/mysql directory exists - (var+"mysql").mkpath end def post_install + # Make sure the var/mysql directory exists + (var+"mysql").mkpath unless File.exist? "#{var}/mysql/mysql/user.frm" ENV['TMPDIR'] = nil system "#{bin}/mysql_install_db", '--verbose', "--user=#{ENV['USER']}", |
