Use package resource instead of custom command

pull/305/head
raucao 2 years ago
parent e1bcd5efa0
commit 9a54a7554f
Signed by: raucao
GPG Key ID: 9F88009D31D99C72
  1. 6
      site-cookbooks/kosmos_zerotier/recipes/zncui.rb

@ -9,12 +9,10 @@ remote_file package_path do
source "https://s3-us-west-1.amazonaws.com/key-networks/deb/ztncui/1/x86_64/ztncui_#{node['ztncui']['version']}_amd64.deb"
checksum node['ztncui']['checksum']
action :create_if_missing
notifies :run, 'bash[install_ztncui_package]', :immediately
end
bash 'install_ztncui_package' do
code "apt-get install -y #{package_path}"
action :nothing
dpkg_package 'ztncui' do
source package_path
end
service "ztncui" do

Loading…
Cancel
Save