redis: don't overwrite existing config file

Fixes Homebrew/homebrew#11352.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Jack Nagel 2012-04-15 22:40:05 -05:00
parent 2096604c6c
commit dd96568ca9

View file

@ -30,7 +30,7 @@ class Redis < Formula
s.gsub! "\# bind 127.0.0.1", "bind 127.0.0.1"
end
etc.install "redis.conf"
etc.install 'redis.conf' unless (etc/'redis.conf').exist?
plist_path.write startup_plist
plist_path.chmod 0644
end