diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/redis.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Formula/redis.rb b/Library/Formula/redis.rb index 746fb2cde..f7e0beaf6 100644 --- a/Library/Formula/redis.rb +++ b/Library/Formula/redis.rb @@ -30,6 +30,12 @@ class Redis < Formula s.gsub! "\# bind 127.0.0.1", "bind 127.0.0.1" end + # Fix redis upgrade from 2.4 to 2.6. + if File.readlines(etc/'redis.conf').grep(/^vm-enabled/) + mv etc/'redis.conf', etc/'redis.conf.old' + ohai "Your redis.conf will not work with 2.6; moved it to redis.conf.old" + end + etc.install 'redis.conf' unless (etc/'redis.conf').exist? end |
