Skip to content

Commit

Permalink
mariadb: my.cnf edits apply to --client-only
Browse files Browse the repository at this point in the history
  • Loading branch information
adamv committed Jun 16, 2013
1 parent 6b1fa8c commit 4a33e4b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Formula/mariadb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@ def install
system "make"
system "make install"

# Fix my.cnf to point to #{etc} instead of /etc
inreplace "#{etc}/my.cnf" do |s|
s.gsub!("!includedir /etc/my.cnf.d", "!includedir #{etc}/my.cnf.d")
end

unless build.include? 'client-only'
# Don't create databases inside of the prefix!
# See: https://github.com/mxcl/homebrew/issues/4975
Expand All @@ -107,11 +112,6 @@ def install
s.gsub!(/pidof/, 'pgrep') if MacOS.version >= :mountain_lion
end

# Fix my.cnf to point to #{etc} instead of /etc
inreplace "#{etc}/my.cnf" do |s|
s.gsub!("!includedir /etc/my.cnf.d", "!includedir #{etc}/my.cnf.d")
end

ln_s "#{prefix}/support-files/mysql.server", bin
end
end
Expand Down

0 comments on commit 4a33e4b

Please sign in to comment.