From e373b7f56538a4cedd80d9195fb11e2e8f130bea Mon Sep 17 00:00:00 2001 From: Cyril Cressent Date: Fri, 25 Oct 2024 10:16:39 -0700 Subject: [PATCH] Rewrite package repositories URLs 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. --- install-script/install.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install-script/install.sh b/install-script/install.sh index 55898302..4256f5e9 100755 --- a/install-script/install.sh +++ b/install-script/install.sh @@ -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}" ;; @@ -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}" ;;