Second part of fix for #7040 (#7083)
* Second part of fix for #7040 kickstart-static64.sh passes --stable-channel option to install-or-update.sh * kickstart-static64.sh: Improve option parsing
Konstantinos Natsakis committed
Nov 6, 2019 at 13:02 UTC
3334d64b014572011e9345f4024e5bb25b0b55eb
2 files changed
+2
-2
packaging/installer/README.md
+1
-2
@@ -109,7 +109,7 @@ This script installs Netdata at `/opt/netdata`.
109
Verify the integrity of the script with this:
110
111
```bash
112
-[ "7c3471506f548968edbbf8d085fbea65" = "$(curl -Ss https://my-netdata.io/kickstart-static64.sh | md5sum | cut -d ' ' -f 1)" ] && echo "OK, VALID" || echo "FAILED, INVALID"
112
+[ "8ad43ff960bf6f2487233682909f7a87" = "$(curl -Ss https://my-netdata.io/kickstart-static64.sh | md5sum | cut -d ' ' -f 1)" ] && echo "OK, VALID" || echo "FAILED, INVALID"
113
```
114
115
*It should print `OK, VALID` if the script is the one we ship.*
@@ -127,7 +127,6 @@ Example using all the above parameters:
127
```sh
128
bash <(curl -Ss https://my-netdata.io/kickstart-static64.sh) --dont-wait --dont-start-it --no-updates --stable-channel --local-files /tmp/my-selfdownloaded-tarball.tar.gz /tmp/checksums.txt
129
```
130
-Note: `--stable-channel` and `--local-files` overlap, if you use the tarball override the stable channel option is not effective
130
131
If your shell fails to handle the above one liner, do this:
132
packaging/installer/kickstart-static64.sh
+1
@@ -198,6 +198,7 @@ while [ -n "${1}" ]; do
198
shift 1
199
elif [ "${1}" = "--stable-channel" ]; then
200
RELEASE_CHANNEL="stable"
201
+ NETDATA_INSTALLER_OPTIONS="${NETDATA_INSTALLER_OPTIONS:+${NETDATA_INSTALLER_OPTIONS} }${1}"
202
shift 1
203
elif [ "${1}" = "--local-files" ]; then
204
shift 1