From 42343b2c7d496a8274dfe5e0b156e5e986f5396b Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Tue, 25 Feb 2014 12:06:57 +0000 Subject: [PATCH] mariadb: tweak post_install for bottling. --- Formula/mariadb.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Formula/mariadb.rb b/Formula/mariadb.rb index 9d75e0e8a40..14cef4e8e10 100644 --- a/Formula/mariadb.rb +++ b/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']}",