Fix cleanup from a failed DEB install. (#12006)
* Fix cleanup from a failed DEB install. We should obviously use the correct command to uninstall a package. * Fix checksums. * Purge instead of remove.
Austin S. Hemmelgarn committed
Jan 21, 2022 at 07:12 UTC
67b1936e161e71eea2ecc1960d265c88a2dfd80e
2 files changed
+3
-3
packaging/installer/kickstart.sh
+2
-2
@@ -845,7 +845,7 @@ try_package_install() {
845
pkg_vsep="_"
846
pkg_install_opts="${interactive_opts}"
847
repo_update_opts="${interactive_opts}"
848
- uninstall_subcmd="uninstall"
848
+ uninstall_subcmd="purge"
849
INSTALL_TYPE="binpkg-deb"
850
;;
851
ubuntu)
@@ -858,7 +858,7 @@ try_package_install() {
858
pkg_vsep="_"
859
pkg_install_opts="${interactive_opts}"
860
repo_update_opts="${interactive_opts}"
861
- uninstall_subcmd="uninstall"
861
+ uninstall_subcmd="purge"
862
INSTALL_TYPE="binpkg-deb"
863
;;
864
centos)
packaging/installer/methods/kickstart.md
+1
-1
@@ -140,7 +140,7 @@ To use `md5sum` to verify the integrity of the `kickstart.sh` script you will do
140
run the following:
141
142
```bash
143
-[ "0c43e3f3807bcdbb39f2b4fe842559aa" = "$(curl -Ss https://my-netdata.io/kickstart.sh | md5sum | cut -d ' ' -f 1)" ] && echo "OK, VALID" || echo "FAILED, INVALID"
143
+[ "b02afd3bcb4b666487024946703c48d1" = "$(curl -Ss https://my-netdata.io/kickstart.sh | md5sum | cut -d ' ' -f 1)" ] && echo "OK, VALID" || echo "FAILED, INVALID"
144
```
145
146
If the script is valid, this command will return `OK, VALID`.