kickstart.sh: Fix `--release-channel` as `--nightly-channel` options (#14424)
These options were introduced in ea451662055227545550d8f09deecb1427b7c672 but were broken a few days later in ae87d84b016b242a392695d5c9043aa35ff3063b. Currently these options are documented but kickstart script exits with `Unrecognized option` error if you use them.
Martin Vobruba committed
Feb 6, 2023 at 17:13 UTC
f59bf0a5d81cb8da369e21b8a4d7623c0c0aa88c
1 file changed
+13
packaging/installer/kickstart.sh
+13
@@ -2114,7 +2114,20 @@ parse_args() {
2114
"--dont-wait"|"--non-interactive") INTERACTIVE=0 ;;
2115
"--interactive") INTERACTIVE=1 ;;
2116
"--dry-run") DRY_RUN=1 ;;
2117
+ "--release-channel")
2118
+ RELEASE_CHANNEL="$(echo "${2}" | tr '[:upper:]' '[:lower:]')"
2119
+ case "${RELEASE_CHANNEL}" in
2120
+ nightly|stable|default)
2121
+ shift 1
2122
+ ;;
2123
+ *)
2124
+ echo "Unrecognized value for --release-channel. Valid release channels are: stable, nightly, default"
2125
+ exit 1
2126
+ ;;
2127
+ esac
2128
+ ;;
2129
"--stable-channel") RELEASE_CHANNEL="stable" ;;
2130
+ "--nightly-channel") RELEASE_CHANNEL="nightly" ;;
2131
"--no-updates") NETDATA_AUTO_UPDATES=0 ;;
2132
"--auto-update") NETDATA_AUTO_UPDATES="1" ;;
2133
"--auto-update-method")