From f8ec069b343fbc77a67bc1710a90fe7a069804a9 Mon Sep 17 00:00:00 2001 From: Tim D. Smith Date: Wed, 8 Apr 2015 13:21:47 -0700 Subject: mariadb: protect etc/my.cnf.d from brew prune Closes #31760. Closes #38467. --- Library/Formula/mariadb.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'Library/Formula') diff --git a/Library/Formula/mariadb.rb b/Library/Formula/mariadb.rb index cae4374e5..c09181469 100644 --- a/Library/Formula/mariadb.rb +++ b/Library/Formula/mariadb.rb @@ -123,6 +123,7 @@ class Mariadb < Formula inreplace "#{etc}/my.cnf" do |s| s.gsub!("!includedir /etc/my.cnf.d", "!includedir #{etc}/my.cnf.d") end + touch etc/"my.cnf.d/.homebrew_dont_prune_me" # Don't create databases inside of the prefix! # See: https://github.com/Homebrew/homebrew/issues/4975 -- cgit v1.2.3