@cryptotaxi247 / netdata-1 / commits / 7c1613d40

Fix handling of removed packages with leftover config files in package check. (#12033)

* Fix handling of removed packages with leftover config files in package check. * Fix checksums.

Austin S. Hemmelgarn committed Jan 27, 2022 at 08:43 UTC 7c1613d400914febfae3265f6273a978f4198edd
2 files changed +2 -2
packaging/installer/kickstart.sh
+1 -1
@@ -751,7 +751,7 @@ claim() {
751 pkg_installed() {
752 case "${DISTRO_COMPAT_NAME}" in
753 debian|ubuntu)
754 - dpkg -l "${1}" > /dev/null 2>&1
754 + dpkg-query --show --showformat '${Status}' "${1}" 2>&1 | cut -f 1 -d ' ' | grep -q '^install$'
755 return $?
756 ;;
757 centos|fedora|opensuse)
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 -[ "dc50e88ee6e19f50dd395e1e5117a1fa" = "$(curl -Ss https://my-netdata.io/kickstart.sh | md5sum | cut -d ' ' -f 1)" ] && echo "OK, VALID" || echo "FAILED, INVALID"
143 +[ "0d1efd304a5a18019a69569d94f6f334" = "$(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`.