diff options
| author | Mike McQuaid | 2012-10-30 14:46:24 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2012-10-30 14:47:02 +0000 |
| commit | 8de552ef2f0f6bf8eb818174877c39aa316e1d95 (patch) | |
| tree | c61bdf1f1699fe02b552f525cc0b0cad39762e4f /Library | |
| parent | 6628ee35ce7030e852385981e7bd4c4e4c0bf96f (diff) | |
| download | homebrew-8de552ef2f0f6bf8eb818174877c39aa316e1d95.tar.bz2 | |
redis: fix configuration file for upgrades.
Fixes #15737. Fixes #15671. References #15610.
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 |
