Skip to content

Commit

Permalink
Fix the broken source url.
Browse files Browse the repository at this point in the history
activemq tarball has been moved to a new url.
  • Loading branch information
waitgh committed Jun 9, 2014
1 parent 5dce4ca commit bf609d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#

default['activemq']['mirror'] = "http://apache.mirrors.tds.net"
default['activemq']['archive'] = "http://archive.apache.org"
default['activemq']['version'] = "5.5.1"
default['activemq']['home'] = "/opt"
default['activemq']['wrapper']['max_memory'] = "512"
Expand Down
3 changes: 2 additions & 1 deletion recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
tmp = Chef::Config[:file_cache_path]
version = node['activemq']['version']
mirror = node['activemq']['mirror']
archive = node['activemq']['archive']
activemq_home = "#{node['activemq']['home']}/apache-activemq-#{version}"

directory node['activemq']['home'] do
Expand All @@ -30,7 +31,7 @@

unless File.exists?("#{activemq_home}/bin/activemq")
remote_file "#{tmp}/apache-activemq-#{version}-bin.tar.gz" do
source "#{mirror}/activemq/apache-activemq/#{version}/apache-activemq-#{version}-bin.tar.gz"
source "#{archive}/dist/activemq/apache-activemq/#{version}/apache-activemq-#{version}-bin.tar.gz"
mode "0644"
end

Expand Down

0 comments on commit bf609d3

Please sign in to comment.