aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorTim D. Smith2015-04-08 13:21:47 -0700
committerTim D. Smith2015-04-09 00:42:04 -0700
commitf8ec069b343fbc77a67bc1710a90fe7a069804a9 (patch)
tree3f4cc8da4989c3f6182bd1ef0c8c43525f98a2c5 /Library
parenta919a5fecfe3a9f0607cc93999658ef1c7f08e1c (diff)
downloadhomebrew-f8ec069b343fbc77a67bc1710a90fe7a069804a9.tar.bz2
mariadb: protect etc/my.cnf.d from brew prune
Closes #31760. Closes #38467.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/mariadb.rb1
1 files changed, 1 insertions, 0 deletions
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