From 3d81134f976b49fad407813a03dcda4292ba4516 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Krupa?= Date: Mon, 25 Feb 2019 11:47:20 +0100 Subject: [PATCH] introduce "stable channel" placeholder (#5499) --- netdata-installer.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/netdata-installer.sh b/netdata-installer.sh index 53be73a7170d77..9c2cca7b537072 100755 --- a/netdata-installer.sh +++ b/netdata-installer.sh @@ -100,6 +100,7 @@ AUTOUPDATE=0 NETDATA_PREFIX= LIBS_ARE_HERE=0 NETDATA_CONFIGURE_OPTIONS="${NETDATA_CONFIGURE_OPTIONS-}" +RELEASE_CHANNEL="nightly" usage() { netdata_banner "installer command line options" @@ -128,7 +129,12 @@ Valid are: Install netdata-updater to cron, to update netdata automatically once per day - (can only be done for installations from git) + + --stable-channel + + Auto-updater will update netdata only when new release is published + in GitHub release pages. This results in less frequent updates. + Default: Use packages from GCS (nightly release channel). --enable-plugin-freeipmi --disable-plugin-freeipmi @@ -204,6 +210,9 @@ while [ ! -z "${1}" ]; do elif [ "$1" = "--auto-update" -o "$1" = "-u" ]; then AUTOUPDATE=1 shift 1 + elif [ "$1" = "--stable-channel" ]; then + RELEASE_CHANNEL="stable" + shift 1 elif [ "$1" = "--enable-plugin-freeipmi" ]; then NETDATA_CONFIGURE_OPTIONS="${NETDATA_CONFIGURE_OPTIONS//--enable-plugin-freeipmi/} --enable-plugin-freeipmi" shift 1 @@ -1043,6 +1052,7 @@ NETDATA_CONFIGURE_OPTIONS="${NETDATA_CONFIGURE_OPTIONS}" NETDATA_ADDED_TO_GROUPS="${NETDATA_ADDED_TO_GROUPS}" INSTALL_UID="${UID}" REINSTALL_COMMAND="${REINSTALL_COMMAND}" +RELEASE_CHANNEL="${RELEASE_CHANNEL}" # next 3 values are meant to be populated by autoupdater (if enabled) NETDATA_TARBALL_URL="https://storage.googleapis.com/netdata-nightlies/netdata-latest.tar.gz" NETDATA_TARBALL_CHECKSUM_URL="https://storage.googleapis.com/netdata-nightlies/sha256sums.txt"