Skip to content

Instantly share code, notes, and snippets.

Created April 6, 2012 19:01
Show Gist options
  • Save anonymous/2322084 to your computer and use it in GitHub Desktop.
Save anonymous/2322084 to your computer and use it in GitHub Desktop.
dpkg_package "solr_#{instance['port']}" do
package_name "solr"
source "/tmp/#{solr_file}"
options "--instdir=#{instance['destination']}"
# Test if the version of package is already installed
not_if do
File.exists?("#{dest}/Makefile")
end
notifies :restart, "supervisord_program[solr_#{instance['port']}]"
action [:install]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment