Commit ce631d9b authored by Yoway Buorn's avatar Yoway Buorn
Browse files

foodcritic - FC001 FC019 FC064 FC065

parent 1dd45129
name 'sumologic-collector'
maintainer 'Ben Newton'
maintainer_email 'ben@sumologic.com'
maintainer 'Yoway Buorn'
maintainer_email 'yoway@sumologic.com'
issues_url 'https://github.com/SumoLogic/sumologic-collector-chef-cookbook/issues'
source_url 'https://github.com/SumoLogic/sumologic-collector-chef-cookbook'
license 'Apache v2.0'
description 'Installs/Configures sumologic-collector'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
......
......@@ -7,7 +7,7 @@ dpkg_package 'sumocollector' do
action :install
end
if node[:platform] == 'debian' && Gem::Version.new(node[:platform_version]) >= Gem::Version.new('8.0')
if node['platform'] == 'debian' && Gem::Version.new(node['platform_version']) >= Gem::Version.new('8.0')
execute 'sumo-systemd-reload' do
command 'sudo /bin/systemctl --system daemon-reload && sudo systemctl restart collector.service'
action :run
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment