Skip to content

Commit

Permalink
A better way to check whether expected version of Redis is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
hakanensari committed Apr 20, 2011
1 parent 4789702 commit 4bb1731
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recipes/source.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
end
end

unless `ps -A -o command | grep "[r]edis"`.include?(node[:redis][:version])
unless `redis-server -v 2> /dev/null`.include?(node[:redis][:version])
# ensuring we have this directory
directory "/opt/src"

Expand Down

0 comments on commit 4bb1731

Please sign in to comment.