aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMax Riveiro2013-07-05 00:31:30 +0400
committerJack Nagel2013-07-05 11:21:57 -0500
commitf94332bfe52a67b060f79f758bcebba965e76185 (patch)
tree0909cc142a6bd64570ed0a71954fd88a000b7d0f /Library
parentba9263d2b8e5478851aad9cf9bbfbe57299e3137 (diff)
downloadhomebrew-f94332bfe52a67b060f79f758bcebba965e76185.tar.bz2
redis: install redis-sentinel
Install redis-sentinel binary and redis-sentinel.conf config file along with other standard files. Closes #21014. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/redis.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Formula/redis.rb b/Library/Formula/redis.rb
index e4b3f2246..cfb1143bd 100644
--- a/Library/Formula/redis.rb
+++ b/Library/Formula/redis.rb
@@ -20,7 +20,7 @@ class Redis < Formula
src = (buildpath/'src/Makefile').exist? ? buildpath/'src' : buildpath
system "make", "-C", src, "CC=#{ENV.cc}"
- %w[benchmark cli server check-dump check-aof].each { |p| bin.install src/"redis-#{p}" }
+ %w[benchmark cli server check-dump check-aof sentinel].each { |p| bin.install src/"redis-#{p}" }
%w[run db/redis log].each { |p| (var+p).mkpath }
# Fix up default conf file to match our paths
@@ -37,6 +37,7 @@ class Redis < Formula
end
etc.install 'redis.conf' unless (etc/'redis.conf').exist?
+ etc.install_p 'sentinel.conf', 'redis-sentinel.conf' unless (etc/'redis-sentinel.conf').exist?
end
plist_options :manual => "redis-server #{HOMEBREW_PREFIX}/etc/redis.conf"