diff options
| author | Mike McQuaid | 2013-10-07 15:35:06 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2013-10-10 16:46:48 +0100 |
| commit | faa8aec1967ce49ca851d51fc5f6281eb261951c (patch) | |
| tree | b8b4412a7c0ea6934c7b68a0b120bda3003ad55f /Library | |
| parent | 3245b06414f89b8469d225a97f2121d337b57d5d (diff) | |
| download | homebrew-faa8aec1967ce49ca851d51fc5f6281eb261951c.tar.bz2 | |
mariadb: move var mkpath to install.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/mariadb.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Formula/mariadb.rb b/Library/Formula/mariadb.rb index 54ac6cd3c..e87a84db9 100644 --- a/Library/Formula/mariadb.rb +++ b/Library/Formula/mariadb.rb @@ -103,12 +103,12 @@ class Mariadb < Formula ln_s "#{prefix}/support-files/mysql.server", bin end - end - def post_install # Make sure the var/mysql directory exists (var+"mysql").mkpath + end + def post_install unless File.exist? "#{var}/mysql/mysql/user.frm" ENV['TMPDIR'] = nil system "#{bin}/mysql_install_db", '--verbose', "--user=#{ENV['USER']}", |
