redis: bind to localhost by default

This avoids leaving a port open to the local network and also the annoying
firewall confirmation dialogs every time redis starts.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Chris Adams 2012-02-14 17:35:16 -05:00 committed by Adam Vandenberg
parent b8e39d86fa
commit 71a6438a07

View file

@ -27,6 +27,7 @@ class Redis < Formula
inreplace "redis.conf" do |s|
s.gsub! "/var/run/redis.pid", "#{var}/run/redis.pid"
s.gsub! "dir ./", "dir #{var}/db/redis/"
s.gsub! "\# bind 127.0.0.1", "bind 127.0.0.1"
end
doc.install Dir["doc/*"]