Skip to content

Commit

Permalink
Rewrite package repositories URLs
Browse files Browse the repository at this point in the history
We want to have packages.sumologic.com instead of packagecloud.io, in
case we ever move away from PackageCloud.

As of now, packages.sumologic.com/sumologic redirects to
packagecloud.io/sumologic.
  • Loading branch information
ccressent committed Oct 25, 2024
1 parent c764bc3 commit e373b7f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions install-script/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -970,6 +970,8 @@ function install_linux_package() {
case $(get_package_manager) in
yum | dnf)
curl -s "${base_url}/script.rpm.sh" | bash
# Change packagecloud.io to packages.sumologic.com in the repo's configuration
sed -i 's/packagecloud.io/packages.sumologic.com' /etc/yum.repos.d/sumologic_stable.repo
yum --quiet --disablerepo="*" --enablerepo="${repo_id}" -y update
yum install --quiet -y "${package_name}-${VERSION}"
;;
Expand All @@ -981,6 +983,8 @@ function install_linux_package() {
fi
echo "Installing ${package_str}"
curl -s "${base_url}/script.deb.sh" | bash
# Change packagecloud.io to packages.sumologic.com in the repo's configuration
sed -i 's/packagecloud.io/packages.sumologic.com' /etc/apt/sources.list.d/sumologic_stable.list
apt-get update --quiet -y -o Dir::Etc::sourcelist="sources.list.d/${repo_id}"
apt-get install --quiet -y "${package_str}"
;;
Expand Down

0 comments on commit e373b7f

Please sign in to comment.