Improve messaging around unknown install handling in kickstart script. (#12134)
* Improve messaging around unknown install handling in kickstart script. * Fix minor issues with messages.
Austin S. Hemmelgarn committed
Feb 17, 2022 at 06:11 UTC
f68fa9eed3eec4e1f9ccd9525a22b5de46bf6534
2 files changed
+4
-1
packaging/installer/kickstart.sh
+3
@@ -586,6 +586,7 @@ handle_existing_install() {
586
kickstart-*|legacy-*|binpkg-*|manual-static|unknown)
587
if [ "${INSTALL_TYPE}" = "unknown" ]; then
588
warning "Found an existing netdata install at ${INSTALL_PREFIX}, but could not determine the install type."
589
+ warning "Usually this means you installed Netdata through your distribution’s regular package repositories or some other unsupported method."
590
else
591
progress "Found an existing netdata install at ${INSTALL_PREFIX}, with installation type '${INSTALL_TYPE}'."
592
fi
@@ -613,6 +614,8 @@ handle_existing_install() {
614
esac
615
616
return 0
617
+ elif [ "${INSTALL_TYPE}" = "unknown" ]; then
618
+ fatal "We do not support trying to update or claim installations when we cannot determine the install type. You will need to uninstall the existing install using the same method you used to install it to proceed." F0106
619
fi
620
621
ret=0
packaging/installer/methods/kickstart.md
+1
-1
@@ -136,7 +136,7 @@ To use `md5sum` to verify the integrity of the `kickstart.sh` script you will do
136
run the following:
137
138
```bash
139
-[ "f01086a471f030c294d31e49df84850f" = "$(curl -Ss https://my-netdata.io/kickstart.sh | md5sum | cut -d ' ' -f 1)" ] && echo "OK, VALID" || echo "FAILED, INVALID"
139
+[ "373053d7b715af0d9c30e479a6c53809" = "$(curl -Ss https://my-netdata.io/kickstart.sh | md5sum | cut -d ' ' -f 1)" ] && echo "OK, VALID" || echo "FAILED, INVALID"
140
```
141
142
If the script is valid, this command will return `OK, VALID`.