Browse Source

kickstart.sh: fix quoting for globbing (#12148)

* kickstart.sh: fix quoting for globbing

Signed-off-by: Cyril Duval <cyril@fayak.com>

* kickstart: update MD5

Signed-off-by: Cyril Duval <cyril@fayak.com>
zarak 3 years ago
parent
commit
598ce2180a
2 changed files with 2 additions and 2 deletions
  1. 1 1
      packaging/installer/kickstart.sh
  2. 1 1
      packaging/installer/methods/kickstart.md

+ 1 - 1
packaging/installer/kickstart.sh

@@ -1392,7 +1392,7 @@ while [ -n "${1}" ]; do
       NETDATA_CLAIM_URL="${2}"
       shift 1
       ;;
-    "--claim-*")
+    "--claim-"*)
       optname="$(echo "${1}" | cut -d '-' -f 4-)"
       case "${optname}" in
         id|proxy|user|hostname)

+ 1 - 1
packaging/installer/methods/kickstart.md

@@ -136,7 +136,7 @@ To use `md5sum` to verify the integrity of the `kickstart.sh` script you will do
 run the following:
 
 ```bash
-[ "b63815109547f15a979752fced6bfc2e" = "$(curl -Ss https://my-netdata.io/kickstart.sh | md5sum | cut -d ' ' -f 1)" ] && echo "OK, VALID" || echo "FAILED, INVALID"
+[ "f01086a471f030c294d31e49df84850f" = "$(curl -Ss https://my-netdata.io/kickstart.sh | md5sum | cut -d ' ' -f 1)" ] && echo "OK, VALID" || echo "FAILED, INVALID"
 ```
 
 If the script is valid, this command will return `OK, VALID`.