Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
mysql: fix typo, developer warning and add test.
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMcQuaid committed Jan 31, 2013
1 parent 7ce82d3 commit 336c976
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Library/Formula/mysql.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ def install
s.gsub!(/pidof/, 'pgrep') if MacOS.version >= :mountain_lion
end
ln_s "#{prefix}/support-files/mysql.server", bin

# Move mysqlaccess to libexec
mv "#{bin}/mysqlaccess", libexec
mv "#{bin}/mysqlaccess.conf", libexec
end

def caveats; <<-EOS.undent
Expand All @@ -114,7 +118,7 @@ def caveats; <<-EOS.undent
mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=#{var}/mysql --tmpdir=/tmp
To set up base tables in another folder, or use a different user to run
mysqld, view the help for mysqld_install_db:
mysqld, view the help for mysql_install_db:
mysql_install_db --help
and view the MySQL documentation:
Expand Down Expand Up @@ -155,4 +159,10 @@ def plist; <<-EOS.undent
</plist>
EOS
end

test do
(opt_prefix+'mysql-test').cd do
system './mysql-test-run.pl', 'status'
end
end
end

0 comments on commit 336c976

Please sign in to comment.