From 9a54a7554f5dec66a1b982f3ac6a4bd43f112dfc Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Mon, 8 Feb 2021 20:01:22 +0100 Subject: [PATCH] Use package resource instead of custom command --- site-cookbooks/kosmos_zerotier/recipes/zncui.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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