Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions make-install-script.erb
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ sudo sh <<'SCRIPT'
version=$(cat /etc/system-release-cpe | awk '{print substr($1, index($1, "o"))}' | cut -d: -f4 | cut -d. -f1)
arch=$(rpm --eval %{_arch})
<% if install_info[:lts] %>
curl --silent -o fluent-release.rpm <%= install_info[:base_url] %>/lts/<%= install_info[:channel_version]%>/redhat/${version}/${arch}/fluent-lts-release-<%= install_info[:fluent_release_version] %>.el${version}.noarch.rpm
curl --silent --location --output fluent-release.rpm <%= install_info[:base_url] %>/lts/<%= install_info[:channel_version]%>/redhat/${version}/${arch}/fluent-lts-release-<%= install_info[:fluent_release_version] %>.el${version}.noarch.rpm
if [ -e /etc/yum.repos.d/fluent-package-lts.repo ]; then
if ! rpm -qf /etc/yum.repos.d/fluent-package-lts.repo; then
echo "Backup unmanaged .repo to fluent-package-lts.repo.rpmsave"
mv /etc/yum.repos.d/fluent-package-lts.repo /etc/yum.repos.d/fluent-package-lts.repo.rpmsave
fi
fi
<% else %>
curl --silent -o fluent-release.rpm <%= install_info[:base_url] %>/<%= install_info[:channel_version]%>/redhat/${version}/${arch}/fluent-release-<%= install_info[:fluent_release_version] %>.el${version}.noarch.rpm
curl --silent --location --output fluent-release.rpm <%= install_info[:base_url] %>/<%= install_info[:channel_version]%>/redhat/${version}/${arch}/fluent-release-<%= install_info[:fluent_release_version] %>.el${version}.noarch.rpm
if [ -e /etc/yum.repos.d/fluent-package.repo ]; then
if ! rpm -qf /etc/yum.repos.d/fluent-package.repo; then
echo "Backup unmanaged .repo to fluent-package.repo.rpmsave"
Expand Down Expand Up @@ -95,15 +95,15 @@ sudo sh <<'SCRIPT'
version=$(cat /etc/system-release-cpe | awk '{print substr($1, index($1, "o"))}' | cut -d: -f4 | cut -d. -f1)
arch=$(rpm --eval %{_arch})
<% if install_info[:lts] %>
curl -o fluent-release.rpm <%= install_info[:base_url] %>/lts/<%= install_info[:channel_version]%>/amazon/${version}/${arch}/fluent-lts-release-<%= install_info[:fluent_release_version] %>.amzn${version}.noarch.rpm
curl --location --output fluent-release.rpm <%= install_info[:base_url] %>/lts/<%= install_info[:channel_version]%>/amazon/${version}/${arch}/fluent-lts-release-<%= install_info[:fluent_release_version] %>.amzn${version}.noarch.rpm
if [ -e /etc/yum.repos.d/fluent-package-lts.repo ]; then
if ! rpm -qf /etc/yum.repos.d/fluent-package-lts.repo; then
echo "Backup unmanaged .repo to fluent-package-lts.repo.rpmsave"
mv /etc/yum.repos.d/fluent-package-lts.repo /etc/yum.repos.d/fluent-package-lts.repo.rpmsave
fi
fi
<% else %>
curl -o fluent-release.rpm <%= install_info[:base_url] %>/<%= install_info[:channel_version]%>/amazon/${version}/${arch}/fluent-release-<%= install_info[:fluent_release_version] %>.amzn${version}.noarch.rpm
curl --location --output fluent-release.rpm <%= install_info[:base_url] %>/<%= install_info[:channel_version]%>/amazon/${version}/${arch}/fluent-release-<%= install_info[:fluent_release_version] %>.amzn${version}.noarch.rpm
if [ -e /etc/yum.repos.d/fluent-package.repo ]; then
if ! rpm -qf /etc/yum.repos.d/fluent-package.repo; then
echo "Backup unmanaged .repo to fluent-package.repo.rpmsave"
Expand Down Expand Up @@ -182,7 +182,7 @@ fi
sudo sh <<SCRIPT
<% if install_info[:channel_version] >= 5 %>
# use apt-source package which contains keyring
curl -o fluent-apt-source.deb <%= install_info[:base_url] %>/<% if install_info[:lts] %>lts/<% end %><%= install_info[:channel_version] %>/<%= install_info[:distribution] %>/<%= install_info[:version] %>/pool/contrib/f/<%= install_info[:apt_source_deb] %>
curl --location --output fluent-apt-source.deb <%= install_info[:base_url] %>/<% if install_info[:lts] %>lts/<% end %><%= install_info[:channel_version] %>/<%= install_info[:distribution] %>/<%= install_info[:version] %>/pool/contrib/f/<%= install_info[:apt_source_deb] %>
apt install -y ./fluent-apt-source.deb
rm -f ./fluent-apt-source.deb
<% elsif install_info[:channel_version] == 4 %>
Expand All @@ -196,7 +196,7 @@ sudo sh <<SCRIPT
<% else %>

# use apt-source package which contains keyring
curl -o td-agent-apt-source.deb <%= install_info[:base_url] %>/<%= install_info[:channel_version] %>/<%= install_info[:distribution] %>/<%= install_info[:version] %>/pool/contrib/f/<%= install_info[:apt_source_deb] %>
curl --location --output td-agent-apt-source.deb <%= install_info[:base_url] %>/<%= install_info[:channel_version] %>/<%= install_info[:distribution] %>/<%= install_info[:version] %>/pool/contrib/f/<%= install_info[:apt_source_deb] %>
apt install -y ./td-agent-apt-source.deb

<% end %>
Expand Down
Loading