summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAustin S. Hemmelgarn <austin@netdata.cloud>2023-01-23 07:22:59 -0500
committerGitHub <noreply@github.com>2023-01-23 07:22:59 -0500
commit5fabd2548ca342e9133add357bf160c67c6de079 (patch)
tree6987bc1dbf77020995a3c10448f7048677ccab21
parent3be2cc74508d3f13296e0f0774774f314f8be7e9 (diff)
Update kickstart script to use new DEB infrastructure. (#14301)
* Update kickstart script to use new DEB infrastructure. * Fix package filename suffix handling for DEB packages. * Fix the DEB package availability check to use new repo URL.
-rwxr-xr-xpackaging/installer/kickstart.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/packaging/installer/kickstart.sh b/packaging/installer/kickstart.sh
index 8ccd2c22b3..94da3d526c 100755
--- a/packaging/installer/kickstart.sh
+++ b/packaging/installer/kickstart.sh
@@ -28,8 +28,8 @@ KICKSTART_SOURCE="$(
PACKAGES_SCRIPT="https://raw.githubusercontent.com/netdata/netdata/master/packaging/installer/install-required-packages.sh"
PATH="${PATH}:/usr/local/bin:/usr/local/sbin"
PUBLIC_CLOUD_URL="https://app.netdata.cloud"
-REPOCONFIG_DEB_URL_PREFIX="https://packagecloud.io/netdata/netdata-repoconfig/packages"
-REPOCONFIG_DEB_VERSION="1-2"
+REPOCONFIG_DEB_URL_PREFIX="https://repo.netdata.cloud/repos/repoconfig"
+REPOCONFIG_DEB_VERSION="2-1"
REPOCONFIG_RPM_URL_PREFIX="https://repo.netdata.cloud/repos/repoconfig"
REPOCONFIG_RPM_VERSION="2-1"
START_TIME="$(date +%s)"
@@ -1283,7 +1283,7 @@ pkg_installed() {
netdata_avail_check() {
case "${DISTRO_COMPAT_NAME}" in
debian|ubuntu)
- env DEBIAN_FRONTEND=noninteractive apt-cache policy netdata | grep -q packagecloud.io/netdata/netdata;
+ env DEBIAN_FRONTEND=noninteractive apt-cache policy netdata | grep -q repo.netdata.cloud/repos/;
return $?
;;
centos|fedora|ol)
@@ -1362,7 +1362,7 @@ try_package_install() {
repo_subcmd="update"
repo_prefix="debian/${SYSCODENAME}"
pkg_type="deb"
- pkg_suffix="_all"
+ pkg_suffix="+debian${SYSVERSION}_all"
pkg_vsep="_"
pkg_install_opts="${interactive_opts}"
repo_update_opts="${interactive_opts}"
@@ -1376,7 +1376,7 @@ try_package_install() {
repo_subcmd="update"
repo_prefix="ubuntu/${SYSCODENAME}"
pkg_type="deb"
- pkg_suffix="_all"
+ pkg_suffix="+ubuntu${SYSVERSION}_all"
pkg_vsep="_"
pkg_install_opts="${interactive_opts}"
repo_update_opts="${interactive_opts}"
@@ -1473,7 +1473,7 @@ try_package_install() {
case "${pkg_type}" in
deb)
repoconfig_file="${repoconfig_name}${pkg_vsep}${REPOCONFIG_DEB_VERSION}${pkg_suffix}.${pkg_type}"
- repoconfig_url="${REPOCONFIG_DEB_URL_PREFIX}/${repo_prefix}/${repoconfig_file}/download.${pkg_type}"
+ repoconfig_url="${REPOCONFIG_DEB_URL_PREFIX}/${repo_prefix}/${repoconfig_file}"
;;
rpm)
repoconfig_file="${repoconfig_name}${pkg_vsep}${REPOCONFIG_RPM_VERSION}${pkg_suffix}.${pkg_type}"