From c943225bb0f7f80cd5bc11636274eebb59195711 Mon Sep 17 00:00:00 2001 From: Dominyk Tiller Date: Sat, 2 Jul 2016 18:41:24 +0100 Subject: [PATCH] mariadb: fix inreplace audit --- Formula/mariadb.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Formula/mariadb.rb b/Formula/mariadb.rb index 0c58ff8455..7268d926d5 100644 --- a/Formula/mariadb.rb +++ b/Formula/mariadb.rb @@ -108,9 +108,8 @@ class Mariadb < Formula # Fix my.cnf to point to #{etc} instead of /etc (etc/"my.cnf.d").mkpath - inreplace "#{etc}/my.cnf" do |s| - s.gsub!("!includedir /etc/my.cnf.d", "!includedir #{etc}/my.cnf.d") - end + inreplace "#{etc}/my.cnf", "!includedir /etc/my.cnf.d", + "!includedir #{etc}/my.cnf.d" touch etc/"my.cnf.d/.homebrew_dont_prune_me" # Don't create databases inside of the prefix!