Skip to content

Commit

Permalink
do not try and re-install
Browse files Browse the repository at this point in the history
  • Loading branch information
James Awesome committed Mar 8, 2016
1 parent aff2880 commit aba33d7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
license 'Apache v2.0'
description 'Installs/Configures sumologic-collector'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '2.0.1'
version '2.0.2'
attribute 'sumologic/credentials/bag_name',
display_name: "Credentials bag name",
type: "string",
Expand Down
15 changes: 9 additions & 6 deletions recipes/debian.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
remote_file "#{Chef::Config[:file_cache_path]}/sumocollector.deb" do
source node['sumologic']['collectorDEBUrl']
end

dpkg_package 'sumocollector' do
source "#{Chef::Config[:file_cache_path]}/sumocollector.deb"
action :install
unless ::File.exists?(node['sumologic']['installDir'])
remote_file "#{Chef::Config[:file_cache_path]}/sumocollector.deb" do
source node['sumologic']['collectorDEBUrl']
end

dpkg_package 'sumocollector' do
source "#{Chef::Config[:file_cache_path]}/sumocollector.deb"
action :install
end
end

service 'collector' do
Expand Down

0 comments on commit aba33d7

Please sign in to comment.