From faa8aec1967ce49ca851d51fc5f6281eb261951c Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 7 Oct 2013 15:35:06 +0100 Subject: [PATCH] mariadb: move var mkpath to install. --- Library/Formula/mariadb.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Library/Formula/mariadb.rb b/Library/Formula/mariadb.rb index 54ac6cd3c6..e87a84db98 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 + + # 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']}",