From 8dadc5e2fd31c5e36e1a28410f3dd396be7114dc Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Sat, 19 Jun 2021 20:13:50 +0900 Subject: [PATCH] Change the download URL. --- cookbooks/embulk/install.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cookbooks/embulk/install.rb b/cookbooks/embulk/install.rb index fc8c09b..1ad41b0 100644 --- a/cookbooks/embulk/install.rb +++ b/cookbooks/embulk/install.rb @@ -5,13 +5,11 @@ directory node['embulk']['install_path'] do mode '755' end -URL = "#{node['embulk']['base_binary_url']}#{node['embulk']['version']}#{node['embulk']['extension']}" +URL = "#{node['embulk']['base_binary_url']}#{node['embulk']['version']}/embulk-#{node['embulk']['version']}#{node['embulk']['extension']}" TARGET = "#{node['embulk']['install_path']}/embulk" # Download and install: -execute "wget #{URL} -O #{TARGET}" do - not_if "test -e #{TARGET}" -end +execute "wget #{URL} -O #{TARGET}" file TARGET do owner 'root'