percona-server: fix inreplace code that fails on audit

syncs with mysql formula

Signed-off-by: Jaehoon You <teslamint@gmail.com>
master
Jaehoon You 2017-06-09 12:44:29 +09:00 committed by Alex Dunn
parent 38a42861a1
commit c29c63255c
1 changed files with 3 additions and 4 deletions

View File

@ -113,10 +113,9 @@ class PerconaServer < Formula
rm_rf prefix+"data"
# Fix up the control script and link into bin
inreplace "#{prefix}/support-files/mysql.server" do |s|
s.gsub!(/^(PATH=".*)(")/, "\\1:#{HOMEBREW_PREFIX}/bin\\2")
end
inreplace "#{prefix}/support-files/mysql.server",
/^(PATH=".*)(")/,
"\\1:#{HOMEBREW_PREFIX}/bin\\2"
bin.install_symlink prefix/"support-files/mysql.server"
# Install my.cnf that binds to 127.0.0.1 by default