Permalink
Browse files

Installing all Sphinxes to their own directories, then symlinking the…

… latest.
  • Loading branch information...
1 parent d4f7456 commit e8c44bc3cb09e4272575120a602501ba4e72546c @pat pat committed Aug 4, 2011
Showing with 7 additions and 1 deletion.
  1. +7 −1 vagrant_base/sphinx/recipes/all.rb
@@ -1,7 +1,13 @@
node.set[:sphinx][:versions] = {
- '2.0.1-beta' => '/usr/local',
+ '2.0.1-beta' => '/usr/local/sphinx-2.0.1',
'1.10-beta' => '/usr/local/sphinx-1.10',
'0.9.9' => '/usr/local/sphinx-0.9.9'
}
include_recipe 'sphinx::install'
+
+%w( indexer indextool search searchd spelldump ).each do |binary|
+ link "/usr/local/bin/#{binary}" do
+ to "/usr/local/sphinx-2.0.1/bin/#{binary}"
+ end
+end

0 comments on commit e8c44bc

Please sign in to comment.