Change the download URL.

This commit is contained in:
Kazuhiro MUSASHI 2021-06-19 20:13:50 +09:00 committed by Gitea
parent c735b2128e
commit 8dadc5e2fd
1 changed files with 2 additions and 4 deletions

View File

@ -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'