@cryptotaxi247 / netdata-1 / commits / d766183f6

Fix existing install detection for FreeBSD and macOS. (#13243)

Austin S. Hemmelgarn committed Oct 13, 2022 at 07:25 UTC d766183f6c1574f9998400fc8b1fc89ba99550c5
1 file changed +4 -1
packaging/installer/kickstart.sh
+4 -1
@@ -807,7 +807,10 @@ detect_existing_install() {
807 fi
808
809 if [ -n "${ndpath}" ]; then
810 - ndprefix="$(dirname "$(dirname "${ndpath}")")"
810 + case "${ndpath}" in
811 + */usr/bin/netdata|*/usr/sbin/netdata) ndprefix="$(dirname "$(dirname "$(dirname "${ndpath}")")")" ;;
812 + *) ndprefix="$(dirname "$(dirname "${ndpath}")")" ;;
813 + esac
814 fi
815
816 if echo "${ndprefix}" | grep -Eq '^/usr$'; then