From cd097aad6f29e41340c275448e1e3398f0bb8396 Mon Sep 17 00:00:00 2001 From: Konstantinos Natsakis <5933427+knatsakis@users.noreply.github.com> Date: Fri, 18 Oct 2019 17:00:24 +0300 Subject: 7040 enable stable channel option (#7082) * Partial fix for #7040 install-or-update.sh now accepts the --stable-channel option * Add missing quotes to sed command --- packaging/makeself/install-or-update.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'packaging/makeself/install-or-update.sh') diff --git a/packaging/makeself/install-or-update.sh b/packaging/makeself/install-or-update.sh index 21b7bf2e08..393525554b 100755 --- a/packaging/makeself/install-or-update.sh +++ b/packaging/makeself/install-or-update.sh @@ -25,11 +25,13 @@ fi STARTIT=1 AUTOUPDATE=0 +RELEASE_CHANNEL="nightly" while [ "${1}" ]; do case "${1}" in "--dont-start-it") STARTIT=0;; "--auto-update"|"-u") AUTOUPDATE=1;; + "--stable-channel") RELEASE_CHANNEL="stable";; *) echo >&2 "Unknown option '${1}'. Ignoring it.";; esac shift 1 @@ -139,6 +141,9 @@ progress "Install netdata at system init" install_netdata_service || run_failed "Cannot install netdata init service." +set_netdata_updater_channel || run_failed "Cannot set netdata updater tool release channel to '${RELEASE_CHANNEL}'" + + # ----------------------------------------------------------------------------- progress "Install (but not enable) netdata updater tool" cleanup_old_netdata_updater || run_failed "Cannot cleanup old netdata updater tool." -- cgit v1.2.3