diff --git a/site-cookbooks/kosmos_zerotier/recipes/zncui.rb b/site-cookbooks/kosmos_zerotier/recipes/zncui.rb index 8818488..06c54ce 100644 --- a/site-cookbooks/kosmos_zerotier/recipes/zncui.rb +++ b/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