Skip to content

Commit

Permalink
introduce "stable channel" placeholder (#5499)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulfantom committed Feb 25, 2019
1 parent 48a15d1 commit 3d81134
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion netdata-installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -128,7 +129,12 @@ Valid <installer options> 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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 3d81134

Please sign in to comment.