mariadb: fix inreplace audit

This commit is contained in:
Dominyk Tiller 2016-07-02 18:41:24 +01:00
parent cb1b2623dc
commit c943225bb0
No known key found for this signature in database
GPG key ID: FE19AEFCF658C6F6

View file

@ -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!